
package com.czg.account.dto;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.alibaba.fastjson2.annotation.JSONField;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 店铺消息推送设置 实体类。
 *
 * @author zs
 * @since 2025-03-07
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
public class ShopMsgStateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 类型 -1 所有消息 0库存预警 1 耗材预警 2 操作预警 
     */
    private Integer type;

    /**
     * 0关闭推送 1开启推送
     */
    private Integer state;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
