31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
package backend
|
|
|
|
import "cron_admin/app/http/entities"
|
|
|
|
type DbListRequest struct {
|
|
entities.PageRequest
|
|
DbName string `json:"db_name" form:"db_name" example:""`
|
|
Status int `json:"status" form:"status" example:"1"`
|
|
DbType string `json:"db_type" form:"db_type" example:"mysql"`
|
|
}
|
|
|
|
type DbListResponse struct {
|
|
DbId string `json:"db_id"`
|
|
DbName string `json:"db_name"`
|
|
DbType string `json:"db_type"`
|
|
Status int `json:"status"`
|
|
DbPermission int `json:"db_permission"`
|
|
Source string `json:"source"`
|
|
Desc string `json:"desc"`
|
|
CreateTime string `json:"create_time"`
|
|
}
|
|
|
|
type DbAddRequest struct {
|
|
DbName string `json:"db_name" validate:"required" form:"db_name" example:""`
|
|
DbType string `json:"db_type" validate:"required" form:"db_type" example:"mysql"`
|
|
DbPermission int `json:"db_permission" validate:"required" form:"db_permission" example:"1"`
|
|
Source string `json:"source" validate:"required" form:"source" example:""`
|
|
Desc string `json:"desc" form:"desc" example:""`
|
|
Status int `json:"status" form:"status" example:"1"`
|
|
}
|