package com.xinelu.manage.domain.poserInfo;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 泉医到家系统海报模块信息（包含咨询简介信息）对象 poser_info
 *
 * @author xinyilu
 * @date 2023-02-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "泉医到家系统海报模块信息（包含咨询简介信息）对象", description = "poser_info")
public class PoserInfo extends BaseDomain implements Serializable {
    private static final long serialVersionUID = -8094231218078395882L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 护理机构id，用于区分哪个护理站
     */
    @ApiModelProperty(value = "护理机构id，用于区分哪个护理站")
    @Excel(name = "护理机构id，用于区分哪个护理站")
    private Long nurseStationId;

    /**
     * 护理项目id，用于区分是哪个服务项目
     */
    @ApiModelProperty(value = "护理项目id，用于区分是哪个服务项目")
    @Excel(name = "护理项目id，用于区分是哪个服务项目")
    private Long nurseItemId;

    /**
     * 海报名称
     */
    @ApiModelProperty(value = "海报名称")
    @Excel(name = "海报名称")
    @NotBlank(message = "海报名称名称不能为空", groups = {Insert.class, Update.class})
    private String poserName;

    /**
     * 海报编号，系统自动生成
     */
    @ApiModelProperty(value = "海报编号，系统自动生成")
    @Excel(name = "海报编号，系统自动生成")
    private String poserCode;

    /**
     * 海报简介
     */
    @ApiModelProperty(value = "海报简介")
    @Excel(name = "海报简介")
    private String posterIntroduce;

    /**
     * 海报图片存放路径
     */
    @ApiModelProperty(value = "海报图片存放路径")
    @Excel(name = "海报图片存放路径")
    private String posterPictureUrl;

    /**
     * 海报视频存放路径
     */
    @ApiModelProperty(value = "海报视频存放路径")
    @Excel(name = "海报视频存放路径")
    private String posterVideoUrl;

    /**
     * 海报模块标识，护理机构模块：NURSE_AGENCY_MODULE，护理项目模块：NURSE_ITEM_MODULE，健康咨询模块：HEALTH_CONSUTION_MODULE，首页模块：HOME_PAGE_MODULE
     */
    @ApiModelProperty(value = "海报模块标识，护理机构模块：NURSE_AGENCY_MODULE，护理项目模块：NURSE_ITEM_MODULE，健康咨询模块：HEALTH_CONSUTION_MODULE，首页模块：HOME_PAGE_MODULE")
    @Excel(name = "海报模块标识，护理机构模块：NURSE_AGENCY_MODULE，护理项目模块：NURSE_ITEM_MODULE，健康咨询模块：HEALTH_CONSUTION_MODULE，首页模块：HOME_PAGE_MODULE")
    private String moduleType;

    /**
     * 海报显示顺序
     */
    @ApiModelProperty(value = "海报显示顺序")
    @Excel(name = "海报显示顺序")
    private Integer poserSort;

    /**
     * 海报图片跳转链接
     */
    @ApiModelProperty(value = "海报图片跳转链接")
    @Excel(name = "海报图片跳转链接")
    private String jumpLink;

    /**
     * 海报图片跳转标识，新人福利：NEW_PEOPLE_WELFARE，首页：HOME_PAGE，商城：SHOPPING
     */
    @ApiModelProperty(value = "海报图片跳转标识，新人福利：NEW_PEOPLE_WELFARE，首页：HOME_PAGE，商城：SHOPPING")
    @Excel(name = "海报图片跳转标识，新人福利：NEW_PEOPLE_WELFARE，首页：HOME_PAGE，商城：SHOPPING")
    private String jumpType;

    /**
     * 图片跳转类型字典表id
     */
    private Long jumpDictId;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nurseStationId", getNurseStationId())
                .append("nurseItemId", getNurseItemId())
                .append("poserName", getPoserName())
                .append("poserCode", getPoserCode())
                .append("posterIntroduce", getPosterIntroduce())
                .append("posterPictureUrl", getPosterPictureUrl())
                .append("posterVideoUrl", getPosterVideoUrl())
                .append("moduleType", getModuleType())
                .append("poserSort", getPoserSort())
                .append("jumpLink", getJumpLink())
                .append("jumpType", getJumpType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
