feat(system): 新增 autoTK 私信客户端权限控制字段
为 AdminUserDO、TenantDO 及相关 VO 增加 autoTk 与 autoTkExpireTime 字段,支持按用户/租户配置是否允许登录 TK 私信客户端及其到期时间。
This commit is contained in:
@@ -59,6 +59,9 @@ public class TenantRespVO {
|
||||
@Schema(description = "爬主播到期时间")
|
||||
private LocalDateTime crawlExpireTime;
|
||||
|
||||
@Schema(description = "autoTK 私信到期时间")
|
||||
private LocalDateTime autoTkExpireTime;
|
||||
|
||||
@Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
||||
private Integer accountCount;
|
||||
|
||||
|
||||
@@ -68,6 +68,13 @@ public class TenantSaveReqVO {
|
||||
@DiffLogField(name = "爬主播到期时间")
|
||||
private LocalDateTime crawlExpireTime;
|
||||
|
||||
/**
|
||||
* 爬虫到期时间
|
||||
*/
|
||||
@Schema(description = "autoTK 私信到期时间")
|
||||
@DiffLogField(name = "autoTK 私信到期时间")
|
||||
private LocalDateTime autoTkExpireTime;
|
||||
|
||||
@Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
||||
@NotNull(message = "账号数量不能为空")
|
||||
@DiffLogField(name = "账号数量")
|
||||
|
||||
@@ -39,4 +39,8 @@ public class UserClientSaveReqVO {
|
||||
@Schema(description = "是否允许登录 Web AI 客户端", example = "0不允许,1允许")
|
||||
@DiffLogField(name = "允许登录 Web AI 客户端", function = BooleanParseFunction.NAME)
|
||||
private Byte webAi;
|
||||
|
||||
@Schema(description = "是否允许登录Tk私信 客户端", example = "0不允许,1允许")
|
||||
@DiffLogField(name = "是否允许登录Tk私信 客户端", function = BooleanParseFunction.NAME)
|
||||
private Byte autoTk;
|
||||
}
|
||||
|
||||
@@ -86,4 +86,7 @@ public class UserRespVO{
|
||||
|
||||
@Schema(description = "是否允许登录 Web AI 客户端", example = "0不允许,1允许")
|
||||
private Byte webAi;
|
||||
|
||||
@Schema(description = "是否允许登录TK私信客户端", example = "0不允许,1允许")
|
||||
private Byte autoTk;
|
||||
}
|
||||
|
||||
@@ -94,4 +94,7 @@ public class UserSaveReqVO {
|
||||
|
||||
@Schema(description = "是否允许登录 Web AI 客户端", example = "0不允许,1允许")
|
||||
private Byte webAi;
|
||||
|
||||
@Schema(description = "是否允许登录TK私信客户端", example = "0不允许,1允许")
|
||||
private Byte autoTk;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@@ -90,6 +91,10 @@ public class TenantDO extends BaseDO {
|
||||
*/
|
||||
private LocalDateTime crawlExpireTime;
|
||||
|
||||
/**
|
||||
* TK私信到期时间
|
||||
*/
|
||||
private LocalDateTime autoTkExpireTime;
|
||||
/**
|
||||
* 账号数量
|
||||
*/
|
||||
|
||||
@@ -111,4 +111,7 @@ public class AdminUserDO extends TenantBaseDO {
|
||||
|
||||
@Schema(description = "是否允许登录Web AI客户端", example = "0不允许,1允许")
|
||||
private Byte webAi;
|
||||
|
||||
@Schema(description = "是否允许登录TK私信客户端", example = "0不允许,1允许")
|
||||
private Byte autoTk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user