package cn.iocoder.yudao.module.system.controller.admin.user.vo.user;

import cn.iocoder.yudao.module.system.framework.operatelog.core.BooleanParseFunction;
import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 用户创建客户端用户/修改 Request VO")
@Data
public class UserClientSaveReqVO {

    @Schema(description = "用户编号", example = "1024")
    @NotNull(message = "用户编号不能为空")
    private Long id;


    @Schema(description = "是否允许登录主播爬虫客户端", example = "0不允许，1允许")
    @DiffLogField(name = "允许登录主播爬虫客户端", function = BooleanParseFunction.NAME)
    private Byte crawl;

    @Schema(description = "是否允许登录大哥爬虫客户端", example = "0不允许，1允许")
    @DiffLogField(name = "允许登录大哥爬虫客户端", function = BooleanParseFunction.NAME)
    private Byte bigBrother;

    @Schema(description = "租户 Id", example = "1")
    @DiffLogField(name = "租户编号")
    private Long tenantId;

    @Schema(description = "能否登录 AI 聊天工具", example = "0不允许，1允许")
    @DiffLogField(name = "允许登录 AI 聊天工具", function = BooleanParseFunction.NAME)
    private Byte aiChat;

    @Schema(description = "是否允许使用 AI 回复", example = "0不允许，1允许")
    @DiffLogField(name = "允许使用 AI 回复", function = BooleanParseFunction.NAME)
    private Byte aiReplay;

    @Schema(description = "是否允许登录 Web AI 客户端", example = "0不允许，1允许")
    @DiffLogField(name = "允许登录 Web AI 客户端", function = BooleanParseFunction.NAME)
    private Byte webAi;
}
