
package com.czg.market.dto;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.alibaba.fastjson2.annotation.JSONField;
import java.io.Serial;

import com.czg.validator.group.InsertGroup;
import com.czg.validator.group.UpdateGroup;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 店铺模板表 实体类。
 *
 * @author ww
 * @since 2025-10-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class SmsShopTemplateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    private Long id;

    private Long shopId;
    /**
     * 模板名称
     */
    @NotNull(message = "模板名称不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    @Size(max = 30, message = "模板名称最大长度为30个字", groups = {InsertGroup.class, UpdateGroup.class})
    private String title;

    /**
     * 模板内容
     */
    @NotNull(message = "模板内容不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    @Size(max = 500, message = "模板内容最大长度为500个字", groups = {InsertGroup.class, UpdateGroup.class})
    private String content;

     /**
     * 场景描述
     */
    @Size(max = 500, message = "场景描述最大长度为500个字", groups = {InsertGroup.class, UpdateGroup.class})
    private String sceneDetail;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 0 待申请 1 审核中 2 成功  -1失败  -2 重新申请中
     */
    private Integer status;
     /**
     * 店铺是否使用 0 否 1 是
     */
    private Integer shopUse;

    /**
     * 是否删除 0 否 1 是
     */
    private Integer isDel;

    /**
     * 失败原因
     */
    private String failMsg;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private String shopName;

}
