package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.work.domain.TpWechatUser;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 微信使用人修改历史业务对象 tp_wechat_user
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpWechatUser.class, reverseConvertGenerate = false)
public class TpWechatUserBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属微信
     */
    @NotNull(message = "所属微信不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long wid;

    /**
     * 使用人
     */
    @NotNull(message = "使用人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long uid;

    /**
     * 使用人
     */
    @NotBlank(message = "使用人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String user;

    /**
     * 当前客服时间
     */
    @NotNull(message = "当前客服时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date nowTime;

    /**
     * 当前客服总业绩
     */
    @NotNull(message = "当前客服总业绩不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal nowPrice;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 创建人
     */
    @NotNull(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addUser;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addname;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;


}
