agentdto

package
v0.0.0-...-5357738 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentDeRegisterInput

type AgentDeRegisterInput struct {
	ServiceName string `json:"service_name" form:"service_name"`
}

func (*AgentDeRegisterInput) BindValidParams

func (a *AgentDeRegisterInput) BindValidParams(ctx *gin.Context) error

type AgentDeleteInput

type AgentDeleteInput struct {
	ServiceName string `json:"service_name" form:"service_name"`
}

func (*AgentDeleteInput) BindValidParams

func (a *AgentDeleteInput) BindValidParams(ctx *gin.Context) error

type AgentListInput

type AgentListInput struct {
	Info      string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo    int    `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize  int    `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
	Status    string `form:"status" json:"status" validate:""`
	SortField string `form:"sortField" json:"sortField" comment:"排序字段" `
	SortOrder string `json:"sortOrder" form:"sortOrder" comment:"排序规则"`
}

func (*AgentListInput) BindValidParams

func (a *AgentListInput) BindValidParams(ctx *gin.Context) error

type AgentListOutPut

type AgentListOutPut struct {
	Total           int                `json:"total"`
	AgentOutPutItem []*AgentOutPutItem `json:"list"`
	PageNo          int                `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize        int                `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
}

type AgentOutPutItem

type AgentOutPutItem struct {
	ServiceName string `json:"service_name"`
	Address     string `json:"address"`
	Content     string `json:"content"`
	AgentStatus int    `json:"agent_status"`
	LastTime    string `json:"last_time"`
	TaskNum     int    `json:"task_num"`
	FinishNum   int    `json:"finish_num"`
	CreateAt    string `json:"create_at"`
}

type AgentRegisterInput

type AgentRegisterInput struct {
	ServiceName string `json:"service_name"`
	Address     string `json:"address"`
	Content     string `json:"content"`
	TaskNum     int    `json:"task_num"`
	FinishNum   int    `json:"finish_num"`
}

func (*AgentRegisterInput) BindValidParams

func (a *AgentRegisterInput) BindValidParams(ctx *gin.Context) error

type AgentServiceNumInfoOutput

type AgentServiceNumInfoOutput struct {
	AllServices    int `json:"all_services"`
	AllTasks       int `json:"all_tasks"`
	AllFinishTasks int `json:"all_finish_tasks"`
}

type BakHistoryDeleteInput

type BakHistoryDeleteInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
	ID          int64  `json:"id" form:"id" validate:"required"`
}

func (*BakHistoryDeleteInput) BindValidParams

func (d *BakHistoryDeleteInput) BindValidParams(ctx *gin.Context) error

type BakHistoryOutPut

type BakHistoryOutPut struct {
	Host    string `json:"host"`
	DBName  string `json:"db_name"`
	Message string `json:"message"`
	Baktime string `json:"bak_time"`
}

type BarChartOutPut

type BarChartOutPut struct {
	ServiceName []string `json:"service_name"`
	TaskNum     []int64  `json:"task_num"`
}

type DeleteOverViewTaskInput

type DeleteOverViewTaskInput struct {
	ID          int64  `json:"id" form:"id" validate:"required"`
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	TaskID      int64  `json:"task_id" form:"task_id" validate:"required"`
	Type        int64  `json:"type" form:"type" validate:"required"`
}

func (*DeleteOverViewTaskInput) BindValidParams

func (d *DeleteOverViewTaskInput) BindValidParams(ctx *gin.Context) error

type ESBakStartInput

type ESBakStartInput struct {
	ID          int64  `json:"task_id" form:"task_id" comment:"ID"  validate:"required"`
	ServiceName string `json:"service_name" form:"service_name" comment:"服务名"  validate:"required"`
}

func (*ESBakStartInput) BindValidParam

func (d *ESBakStartInput) BindValidParam(ctx *gin.Context) error

type ESBakStopInput

type ESBakStopInput struct {
	ID          int64  `json:"task_id" form:"task_id" comment:"ID"  validate:"required"`
	ServiceName string `json:"service_name" form:"service_name" comment:"服务名"  validate:"required"`
}

func (*ESBakStopInput) BindValidParam

func (d *ESBakStopInput) BindValidParam(ctx *gin.Context) error

type ESBakTaskAddInput

type ESBakTaskAddInput struct {
	ServiceName string `json:"service_name" form:"service_name" comment:"服务名"  validate:"required"`
	HostID      int64  `json:"host_id" form:"host_id" comment:"host_id"  validate:"required"`
	BackupCycle string `json:"backup_cycle" form:"backup_cycle" comment:"备份周期"  validate:"required"`
	KeepNumber  int64  `json:"keep_number" form:"keep_number" comment:"保存时间"  validate:""`
}

func (*ESBakTaskAddInput) BindValidParam

func (d *ESBakTaskAddInput) BindValidParam(ctx *gin.Context) error

type ESBakTaskIDInput

type ESBakTaskIDInput struct {
	ServiceName string `json:"service_name" form:"service_name" comment:"服务名"  validate:"required"`
	ID          int64  `json:"id" form:"id" comment:"ID"  validate:"required"`
}

func (*ESBakTaskIDInput) BindValidParam

func (d *ESBakTaskIDInput) BindValidParam(ctx *gin.Context) error

type ESBakTaskListInput

type ESBakTaskListInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
	Info        string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo      int64  `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize    int64  `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
}

func (*ESBakTaskListInput) BindValidParam

func (d *ESBakTaskListInput) BindValidParam(ctx *gin.Context) error

type ESBakTaskUpdateInput

type ESBakTaskUpdateInput struct {
	ID          int64  `json:"id" form:"id" comment:"ID"  validate:"required"`
	ServiceName string `json:"service_name" form:"service_name" comment:"服务名"  validate:"required"`
	HostID      int64  `json:"host_id" form:"host_id" comment:"host_id"  validate:"required"`
	BackupCycle string `json:"backup_cycle" form:"backup_cycle" comment:"备份周期"  validate:"required"`
	KeepNumber  int64  `json:"keep_number" form:"keep_number" comment:"保存时间"  validate:""`
}

func (*ESBakTaskUpdateInput) BindValidParam

func (d *ESBakTaskUpdateInput) BindValidParam(ctx *gin.Context) error

type ESHistoryListInput

type ESHistoryListInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
	Info        string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo      int64  `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize    int64  `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
	Status      string `form:"status" json:"status" validate:""`
	SortField   string `form:"sortField" json:"sortField" comment:"排序字段" `
	SortOrder   string `json:"sortOrder" form:"sortOrder" comment:"排序规则"`
}

func (*ESHistoryListInput) BindValidParam

func (d *ESHistoryListInput) BindValidParam(ctx *gin.Context) error

type EsHistoryIDInput

type EsHistoryIDInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
	ID          int64  `json:"id" form:"id" validate:"required"`
}

func (*EsHistoryIDInput) BindValidParam

func (d *EsHistoryIDInput) BindValidParam(ctx *gin.Context) error

type EsHistorySvcName

type EsHistorySvcName struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
}

func (*EsHistorySvcName) BindValidParam

func (d *EsHistorySvcName) BindValidParam(ctx *gin.Context) error

type GetDateNumInfoInput

type GetDateNumInfoInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	Date        string `json:"date" form:"date" validate:"required"`
}

type HistoryListInput

type HistoryListInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
	Info        string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo      int64  `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize    int64  `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
	Status      string `form:"status" json:"status" validate:""`
	SortField   string `form:"sortField" json:"sortField" comment:"排序字段" `
	SortOrder   string `json:"sortOrder" form:"sortOrder" comment:"排序规则"`
}

func (*HistoryListInput) BindValidParams

func (d *HistoryListInput) BindValidParams(ctx *gin.Context) error

type HistoryListOutItem

type HistoryListOutItem struct {
	ID         int64  `json:"id"`
	Host       string `json:"host" form:"host"`
	DBName     string `json:"db_name" form:"db_name"`
	DingStatus int64  `json:"ding_status" form:"ding_status"`
	OSSStatus  int64  `json:"oss_status" form:"oss_status"`
	Message    string `json:"message" form:"message"`
	FileSize   int64  `json:"file_size" form:"file_size"`
	FileName   string `json:"file_name" form:"file_name"`
	BakTime    string `json:"bak_time" form:"bak_time"`
}

type HistoryListOutput

type HistoryListOutput struct {
	Total int64                `form:"total" json:"total" comment:"总数"   validate:"" example:""`
	List  []HistoryListOutItem `json:"list" form:"list" comment:"列表" example:"" validate:""` //列表
}

type HistoryServiceNameInput

type HistoryServiceNameInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test.local"`
}

func (*HistoryServiceNameInput) BindValidParams

func (d *HistoryServiceNameInput) BindValidParams(ctx *gin.Context) error

type HostAddInput

type HostAddInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"123456"`
	Host        string `form:"host" json:"host" comment:"数据库备份主机地址加端口"   validate:"required,host_valid" example:"127.0.0.1"`
	User        string `form:"username" json:"username" comment:"用户"   validate:"required" example:"123456"`
	Content     string `form:"content" json:"content" comment:"备注"   validate:"" example:"123456"`
	Password    string `form:"password" json:"password" comment:"数据库密码"   validate:"required" example:"123456"`
	Type        int64  `form:"type" json:"type"  validate:"required"`
}

HostAddInput 添加

func (*HostAddInput) BindValidParams

func (d *HostAddInput) BindValidParams(ctx *gin.Context) error

type HostDeleteInput

type HostDeleteInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"123456"`
	ID          int    `json:"id" form:"id" validate:"required"`
}

HostDeleteInput 删除

func (*HostDeleteInput) BindValidParams

func (d *HostDeleteInput) BindValidParams(ctx *gin.Context) error

type HostIDInput

type HostIDInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test5.local"`
	HostID      int64  `json:"host_id" form:"host_id" validate:"required"`
}

func (*HostIDInput) BindValidParams

func (d *HostIDInput) BindValidParams(ctx *gin.Context) error

type HostListInput

type HostListInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test5.local"`
	Info        string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo      int64  `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize    int64  `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
}

HostListInput 查询

func (*HostListInput) BindValidParams

func (d *HostListInput) BindValidParams(ctx *gin.Context) error

type HostNamesInput

type HostNamesInput struct {
	Type        int64  `form:"type" json:"type" comment:"服务类型"  validate:"required"`
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"test5.local"`
}

func (*HostNamesInput) BindValidParams

func (d *HostNamesInput) BindValidParams(ctx *gin.Context) error

type HostUpdateInput

type HostUpdateInput struct {
	ServiceName string `form:"service_name" json:"service_name" comment:"服务名"   validate:"required" example:"123456"`
	ID          int    `json:"id" form:"id" validate:"required"`
	Host        string `form:"host" json:"host" comment:"数据库备份主机地址加端口"   validate:"required,host_valid" example:"127.0.0.1"`
	User        string `form:"username" json:"username" comment:"用户"   validate:"required" example:"123456"`
	Content     string `form:"content" json:"content" comment:"备注"   validate:"" example:"123456"`
	Password    string `form:"password" json:"password" comment:"数据库密码"   validate:"required" example:"123456"`
	Type        int64  `form:"type" json:"type"  validate:"required"`
}

HostUpdateInput 修改

func (*HostUpdateInput) BindValidParams

func (d *HostUpdateInput) BindValidParams(ctx *gin.Context) error

type StartBakByHostInput

type StartBakByHostInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	HostID      int64  `json:"host_id" form:"host_id" validate:"required"`
}

func (*StartBakByHostInput) BindValidParams

func (b *StartBakByHostInput) BindValidParams(ctx *gin.Context) error

type StartBakInput

type StartBakInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	TaskID      int64  `json:"task_id" form:"task_id" validate:"required"`
}

func (*StartBakInput) BindValidParams

func (b *StartBakInput) BindValidParams(ctx *gin.Context) error

type StartOverViewBakInput

type StartOverViewBakInput struct {
	ID          int64  `json:"id" form:"id" validate:"required"`
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	TaskID      int64  `json:"task_id" form:"task_id" validate:"required"`
	Type        int64  `json:"type" form:"type" validate:"required"`
}

func (*StartOverViewBakInput) BindValidParams

func (d *StartOverViewBakInput) BindValidParams(ctx *gin.Context) error

type StopBakByHostInput

type StopBakByHostInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	HostID      int64  `json:"host_id" form:"host_id" validate:"required"`
}

func (*StopBakByHostInput) BindValidParams

func (b *StopBakByHostInput) BindValidParams(ctx *gin.Context) error

type StopBakInput

type StopBakInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	TaskID      int64  `json:"task_id" form:"task_id" validate:"required"`
}

func (*StopBakInput) BindValidParams

func (b *StopBakInput) BindValidParams(ctx *gin.Context) error

type StopOverViewBakInput

type StopOverViewBakInput struct {
	ID          int64  `json:"id" form:"id" validate:"required"`
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	TaskID      int64  `json:"task_id" form:"task_id" validate:"required"`
	Type        int64  `json:"type" form:"type" validate:"required"`
}

func (*StopOverViewBakInput) BindValidParams

func (d *StopOverViewBakInput) BindValidParams(ctx *gin.Context) error

type TaskAddInput

type TaskAddInput struct {
	ServiceName     string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	HostID          int64  `json:"host_id" form:"host_id" validate:"required"`
	DBName          string `form:"db_name" json:"db_name" comment:"库名"   validate:"required" example:"123456"`
	BackupCycle     string `form:"backup_cycle" json:"backup_cycle" comment:"数据库备份时间"   validate:"required,is_valid_bycle" example:"123456"`
	KeepNumber      int64  `form:"keep_number" json:"keep_number" comment:"保留周期"   validate:"required" example:"123456"`
	IsAllDBBak      int64  `form:"is_all_dbBak" json:"is_all_dbBak" comment:"是否全库备份 0开启 1关闭"  example:"123456"`
	IsDingSend      int64  `json:"is_ding_send" form:"is_ding_send"`
	DingAccessToken string `json:"ding_access_token" form:"ding_access_token"`
	DingSecret      string `json:"ding_secret" form:"ding_secret"`
	OssType         int64  `json:"oss_type" validate:""  form:"oss_type"`
	IsOssSave       int64  `json:"is_oss_save" validate:""  form:"is_oss_save"`
	Endpoint        string `json:"endpoint" validate:""  form:"endpoint"`
	OssAccess       string `json:"oss_access" validate:""  form:"oss_access"`
	OssSecret       string `json:"oss_secret" validate:""  form:"oss_secret"`
	BucketName      string `json:"bucket_name" validate:""  form:"bucket_name"`
	Directory       string `json:"directory" validate:"" form:"directory"`
}

TaskAddInput 新增task

func (*TaskAddInput) BindValidParams

func (d *TaskAddInput) BindValidParams(ctx *gin.Context) error

type TaskAutoAddInput

type TaskAutoAddInput struct {
	ServiceName     string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	HostID          int64  `json:"host_id" form:"host_id" validate:"required"`
	BackupCycle     string `form:"backup_cycle" json:"backup_cycle" comment:"数据库备份时间"   validate:"required,is_valid_bycle" example:"123456"`
	KeepNumber      int64  `form:"keep_number" json:"keep_number" comment:"保留周期"   validate:"required" example:"123456"`
	IsAllDBBak      int64  `form:"is_all_dbBak" json:"is_all_dbBak" comment:"是否全库备份 0开启 1关闭"  example:"123456"`
	IsDingSend      int64  `json:"is_ding_send" form:"is_ding_send"`
	DingAccessToken string `json:"ding_access_token" form:"ding_access_token"`
	DingSecret      string `json:"ding_secret" form:"ding_secret"`
	OssType         int64  `json:"oss_type" validate:""  form:"oss_type"`
	IsOssSave       int64  `json:"is_oss_save" validate:""  form:"is_oss_save"`
	Endpoint        string `json:"endpoint" validate:""  form:"endpoint"`
	OssAccess       string `json:"oss_access" validate:""  form:"oss_access"`
	OssSecret       string `json:"oss_secret" validate:""  form:"oss_secret"`
	BucketName      string `json:"bucket_name" validate:""  form:"bucket_name"`
	Directory       string `json:"directory" validate:"" form:"directory"`
}

TaskAutoAddInput 新增task

func (*TaskAutoAddInput) BindValidParams

func (d *TaskAutoAddInput) BindValidParams(ctx *gin.Context) error

type TaskDeleteInput

type TaskDeleteInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	ID          int64  `json:"id" form:"id" validate:"required"`
}

TaskDeleteInput 删除task

func (*TaskDeleteInput) BindValidParams

func (d *TaskDeleteInput) BindValidParams(ctx *gin.Context) error

type TaskIDInput

type TaskIDInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	ID          int64  `json:"id" form:"id" validate:"required"`
}

func (*TaskIDInput) BindValidParams

func (d *TaskIDInput) BindValidParams(ctx *gin.Context) error

type TaskListInput

type TaskListInput struct {
	ServiceName string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	HostId      int64  `json:"host_id" form:"host_id" validate:"required"`
	Info        string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo      int64  `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize    int64  `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
}

TaskListInput 通过page pagesize 查询服务信息

func (*TaskListInput) BindValidParams

func (d *TaskListInput) BindValidParams(ctx *gin.Context) error

type TaskListOutItem

type TaskListOutItem struct {
	ID          int64  `json:"id" form:"id"`
	Host        string `json:"host" form:"host"`
	HostID      int64  `json:"host_id" form:"host_id"`
	DBName      string `json:"db_name" form:"db_name"`
	BackupCycle string `json:"backup_cycle" form:"backup_cycle"`
	KeepNumber  int64  `json:"keep_number" form:"keep_number"`
	Status      bool   `json:"status" form:"status"`
	CreateAt    string `json:"create_at" form:"create_at"`
}

type TaskListOutput

type TaskListOutput struct {
	Total int64             `form:"total" json:"total" comment:"总数"   validate:"" example:""`
	List  []TaskListOutItem `json:"list" form:"list" comment:"列表" example:"" validate:""` //列表
}

type TaskOverViewListInput

type TaskOverViewListInput struct {
	Info      string `form:"info" json:"info" comment:"关键词"   validate:"" example:""`
	PageNo    int64  `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize  int64  `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
	Type      int64  `form:"type" json:"type"`
	Status    int64  `form:"status" json:"status"`
	SortField string `form:"sortField" json:"sortField" comment:"排序字段" `
	SortOrder string `json:"sortOrder" form:"sortOrder" comment:"排序规则"`
}

func (*TaskOverViewListInput) BindValidParams

func (d *TaskOverViewListInput) BindValidParams(ctx *gin.Context) error

type TaskOverViewListOut

type TaskOverViewListOut struct {
	Total    int64                      `form:"total" json:"total" comment:"总数"   validate:"" example:""`
	List     []*TaskOverViewListOutItem `json:"list" form:"list" comment:"列表" example:"" validate:""` //列表
	PageNo   int64                      `form:"page_no" json:"page_no" comment:"每页条数"   validate:"" example:"1"`
	PageSize int64                      `form:"page_size" json:"page_size" comment:"页数"   validate:"" example:"20"`
}

type TaskOverViewListOutItem

type TaskOverViewListOutItem struct {
	ID          int64  `json:"id" form:"id"`
	ServiceName string `json:"service_name" form:"service_name"`
	HostID      int64  `json:"host_id" form:"host_id"`
	Host        string `json:"host" form:"host"`
	TaskID      int64  `json:"task_id" form:"task_id"`
	DBName      string `json:"db_name" form:"db_name"`
	BackupCycle string `json:"backup_cycle" form:"backup_cycle"`
	KeepNumber  int64  `json:"keep_number" form:"keep_number"`
	Status      int64  `json:"status" form:"status"`
	FinishNum   int64  `json:"finish_num" form:"finish_num"`
	Type        int64  `json:"type" form:"type"`
	IsDeleted   int64  `json:"is_deleted" form:"is_deleted"`
}

type TaskUpdateInput

type TaskUpdateInput struct {
	ServiceName     string `json:"service_name" form:"service_name" validate:"required" comment:"服务名"`
	ID              int64  `json:"id" form:"id" validate:"required"`
	HostID          int64  `json:"host_id" form:"host_id" validate:"required"`
	DBName          string `form:"db_name" json:"db_name" comment:"库名"   validate:"required" example:"123456"`
	BackupCycle     string `form:"backup_cycle" json:"backup_cycle" comment:"数据库备份时间"   validate:"required,is_valid_bycle" example:"123456"`
	KeepNumber      int64  `form:"keep_number" json:"keep_number" comment:"保留周期"   validate:"required" example:"123456"`
	IsAllDBBak      int64  `form:"is_all_dbBak" json:"is_all_dbBak" comment:"是否全库备份 0开启 1关闭"  example:"123456"`
	IsDingSend      int64  `json:"is_ding_send" form:"is_ding_send"`
	DingAccessToken string `json:"ding_access_token" form:"ding_access_token"`
	DingSecret      string `json:"ding_secret" form:"ding_secret"`
	OssType         int64  `json:"oss_type" validate:""  form:"oss_type"`
	IsOssSave       int64  `json:"is_oss_save" validate:"" form:"is_oss_save"`
	Endpoint        string `json:"endpoint" validate:""  form:"endpoint"`
	OssAccess       string `json:"oss_access" validate:""  form:"oss_access"`
	OssSecret       string `json:"oss_secret" validate:""  form:"oss_secret"`
	BucketName      string `json:"bucket_name" validate:""  form:"bucket_name"`
	Directory       string `json:"directory" validate:"" form:"directory" `
}

TaskUpdateInput 更新任务

func (*TaskUpdateInput) BindValidParams

func (d *TaskUpdateInput) BindValidParams(ctx *gin.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL