package com.yuchen.saas.parking.charge.api.entity.charge;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * <p>
 * 公告主表
 * </p>
 *
 * @author
 * @since 2023-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("spc_notice")
@ApiModel(value="SpcNotice对象", description="公告主表")
public class SpcNotice extends BaseEntity {

    /**
     * 公告类型（1：站点，2：园区，3：充电站，4：停车场，5：组织部门）
     */
    @ApiModelProperty(name = "noticeType", value = "公告类型（1：站点，2：园区，3：充电站，4：停车场，5：组织部门）")
    private Integer noticeType;
    /**
     * 标题
     */
    @ApiModelProperty(name = "title", value = "标题")
    private String title;
    /**
     * 发布日期
     */
    @ApiModelProperty(name = "publishStartDate", value = "发布开始日期")
    private Date publishStartDate;
    /**
     * 结束日期
     */
    @ApiModelProperty(name = "publishEndDate", value = "发布结束日期")
    private Date publishEndDate;
    /**
     * 内容类型（1：通知说明，2：图文公告）
     */
    @ApiModelProperty(name = "bulletinType", value = "内容类型（1：通知说明，2：图文公告）")
    private Integer bulletinType;
    /**
     * 通告内容
     */
    @ApiModelProperty(name = "content", value = "通告内容")
    private String content;
    /**
     * 结束人员
     */
    @ApiModelProperty(name = "endUserId", value = "结束人员")
    private Long endUserId;
    /**
     * 发布人员
     */
    @ApiModelProperty(name = "publishUserId", value = "发布人员")
    private Long publishUserId;

    @ApiModelProperty(name = "createUserName", value = "创建人名字")
    @TableField(exist = false)
    private String createUserName;
    @ApiModelProperty(name = "createUserPhone", value = "创建人手机号")
    @TableField(exist = false)
    private String createUserPhone;

    @ApiModelProperty(name = "enterpriseId", value = "运营商id")
    private Long enterpriseId;
    @ApiModelProperty(name = "noticePhoto", value = "公告配图（多张,号隔开）")
    private String noticePhoto;
    @ApiModelProperty(name = "publishScope", value = "发布范围")
    private String publishScope;

    @ApiModelProperty(name = "noticeObjectType", value = "公告对象类型（1：业务模块，2：指定对象（充电站，园区等）")
    private Integer noticeObjectType;
}
