package com.ruoyi.biz.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户业务对象 ar_user
 *
 * @author ruoyi
 * @date 2023-06-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ArUserBo extends BaseEntity {

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

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 微信头像
     */
    @NotBlank(message = "微信头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String image;

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

}
