package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
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.TpClientStaff;

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

/**
 * 客户+客服业务对象 tp_client_staff
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpClientStaff.class, reverseConvertGenerate = false)
public class TpClientStaffBo extends BaseEntity {

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

    /**
     * 所属客服
     */
    private Long sid;

    /**
     * 所属客户
     */
    private Long kid;

    /**
     * 客户姓名
     */
    private String name;

    /**
     * 备注
     */
    private String remark;

    /**
     * 余额
     */
    @NotNull(message = "余额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal yue;

    /**
     * 录入时间
     */
    private Date addTime;

    private String phone;

    private String code;

}
