mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 21:37:56 +08:00
[fix] 添加客户端令牌桶
This commit is contained in:
parent
97f50d1701
commit
6c7f6b807f
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPoolQueryListCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPoolQueryOneCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPoolRemoveCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPoolStoryCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPoolUpdateCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -36,9 +36,9 @@ public class LazyNettyServerPermeatePortPoolQueryListCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ public class LazyNettyServerPermeatePortPoolQueryOneCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ public class LazyNettyServerPermeatePortPoolRemoveCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ public class LazyNettyServerPermeatePortPoolStoryCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ public class LazyNettyServerPermeatePortPoolUpdateCommand {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,9 +33,9 @@ public class LazyNettyServerVisitorQueryListCommand {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,9 +33,9 @@ public class LazyNettyServerVisitorQueryOneCommand {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,9 +33,9 @@ public class LazyNettyServerVisitorRemoveCommand {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,9 +33,9 @@ public class LazyNettyServerVisitorStoryCommand {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,9 +33,9 @@ public class LazyNettyServerVisitorUpdateCommand {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPoolDTO {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyServerPermeatePortPoolDTO {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,9 +33,9 @@ public class LazyNettyServerVisitorDTO {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,9 +44,9 @@ public class LazyNettyClientPermeatePortPool {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ public class LazyNettyServerPermeatePortPool {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,9 +35,9 @@ public class LazyNettyServerVisitor {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,10 +53,10 @@ public class LazyNettyClientPermeatePortPoolDO {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
@LazyTableFieldId(name = "id", comment = "用户ID")
|
@LazyTableFieldId(name = "id", comment = "主键ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.wu.framework.lazy.orm.core.stereotype.LazyTable;
|
||||||
|
import org.wu.framework.lazy.orm.core.stereotype.LazyTableField;
|
||||||
|
import org.wu.framework.lazy.orm.core.stereotype.*;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
import java.lang.String;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import org.wu.framework.lazy.orm.core.stereotype.LazyTableFieldId;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
/**
|
||||||
|
* describe 客户端令牌桶
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/28 01:56 下午
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureEntity
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@LazyTable(tableName = "lazy_netty_client_token_bucket",comment = "客户端令牌桶")
|
||||||
|
@Schema(title = "lazy_netty_client_token_bucket",description = "客户端令牌桶")
|
||||||
|
public class LazyNettyClientTokenBucketDO {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 令牌key
|
||||||
|
*/
|
||||||
|
@Schema(description ="令牌key",name ="appKey",example = "")
|
||||||
|
@LazyTableField(name="app_key",comment="令牌key",columnType="varchar(255)")
|
||||||
|
private String appKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 令牌密钥
|
||||||
|
*/
|
||||||
|
@Schema(description ="令牌密钥",name ="appSecret",example = "")
|
||||||
|
@LazyTableField(name="app_secret",comment="令牌密钥",columnType="varchar(255)")
|
||||||
|
private String appSecret;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@Schema(description ="创建时间",name ="createTime",example = "")
|
||||||
|
@LazyTableField(name="create_time",comment="创建时间",defaultValue="CURRENT_TIMESTAMP",upsertStrategy = LazyFieldStrategy.NEVER,columnType="datetime",extra=" on update CURRENT_TIMESTAMP")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
@LazyTableField(name="describe",comment="描述",columnType="varchar(255)")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 过期时间
|
||||||
|
*/
|
||||||
|
@Schema(description ="过期时间",name ="expireInTime",example = "")
|
||||||
|
@LazyTableField(name="expire_in_time",comment="过期时间",columnType="datetime")
|
||||||
|
private LocalDateTime expireInTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 主键ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
|
@LazyTableFieldId(name = "id", comment = "主键ID")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除",name ="isDeleted",example = "")
|
||||||
|
@LazyTableField(name="is_deleted",comment="是否删除",columnType="tinyint(1)",defaultValue = "'0'")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@Schema(description ="更新时间",name ="updateTime",example = "")
|
||||||
|
@LazyTableField(name="update_time",comment="更新时间",defaultValue="CURRENT_TIMESTAMP",upsertStrategy = LazyFieldStrategy.NEVER,columnType="datetime",extra=" on update CURRENT_TIMESTAMP")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 被使用的客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="被使用的客户端ID",name ="usedByClientId",example = "")
|
||||||
|
@LazyTableField(name="used_by_client_id",comment="被使用的客户端ID",columnType="varchar(255)")
|
||||||
|
private String usedByClientId;
|
||||||
|
|
||||||
|
}
|
@ -47,10 +47,10 @@ public class LazyNettyServerPermeatePortPoolDO {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="用户ID",name ="id",example = "")
|
@Schema(description ="主键ID",name ="id",example = "")
|
||||||
@LazyTableFieldId(name = "id", comment = "用户ID")
|
@LazyTableFieldId(name = "id", comment = "主键ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,10 +38,10 @@ public class LazyNettyServerVisitorDO {
|
|||||||
private String describe;
|
private String describe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@Schema(description = "用户ID", name = "id", example = "")
|
@Schema(description = "主键ID", name = "id", example = "")
|
||||||
@LazyTableFieldId(name = "id", comment = "用户ID")
|
@LazyTableFieldId(name = "id", comment = "主键ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user