package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EElevatorWechatUser;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 电梯微信用户关联业务对象 e_elevator_wechat_user
 *
 * @author ym
 * @date 2024-10-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EElevatorWechatUser.class, reverseConvertGenerate = false)
public class EElevatorWechatUserBo extends BaseEntity {

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

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

    /**
     * 微信公众号openId
     */
    @NotBlank(message = "微信公众号openId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mpOpenId;

    /**
     * 微信关联id
     */
    @NotBlank(message = "微信关联id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unionId;

    /**
     * 微信小程序openId
     */
    @NotBlank(message = "微信小程序openId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String maOpenId;

}
