This commit is contained in:
@@ -8,7 +8,7 @@ type GetPollingConcurrencyReq struct {
|
||||
// UpdatePollingConcurrencyReq 更新轮询并发配置请求
|
||||
type UpdatePollingConcurrencyReq struct {
|
||||
TaskType string `path:"task_type" description:"任务类型" required:"true"`
|
||||
MaxConcurrency int `json:"max_concurrency" validate:"required,min=1,max=1000" description:"最大并发数(1-1000)"`
|
||||
MaxConcurrency int `json:"max_concurrency" validate:"required,min=1" description:"最大并发数(正整数)"`
|
||||
}
|
||||
|
||||
// PollingConcurrencyResp 轮询并发配置响应
|
||||
|
||||
@@ -33,7 +33,7 @@ func (PollingConfig) TableName() string {
|
||||
// PollingConcurrencyConfig 并发控制配置表
|
||||
type PollingConcurrencyConfig struct {
|
||||
ID uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
TaskType string `gorm:"column:task_type;type:varchar(50);uniqueIndex;not null;comment:任务类型:realname/carddata/package/stop_start" json:"task_type"`
|
||||
TaskType string `gorm:"column:task_type;type:varchar(50);uniqueIndex;not null;comment:任务类型:realname/carddata/package/protect/card_status" json:"task_type"`
|
||||
MaxConcurrency int `gorm:"column:max_concurrency;not null;default:50;comment:最大并发数" json:"max_concurrency"`
|
||||
Description string `gorm:"column:description;type:text;comment:配置说明" json:"description"`
|
||||
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"`
|
||||
|
||||
Reference in New Issue
Block a user