forked from all_user/stat_center
Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package proto
|
||||
|
||||
import (
|
||||
"stat/common"
|
||||
"stat/models/domainmod"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
// 请求域名列表
|
||||
type ListDomainInfoReq struct {
|
||||
Name *string `json:"name"`
|
||||
AppId *int32 `json:"appId"`
|
||||
Enable *bool `json:"enable"`
|
||||
Category *domainmod.Category `json:"category" ` // 分类
|
||||
Status *domainmod.CheckStatus `json:"status"` // 状态
|
||||
Check *domainmod.CheckType `json:"check"` // 检测方式
|
||||
common.Page
|
||||
}
|
||||
|
||||
// 响应域名列表
|
||||
type ListDomainInfoRes struct {
|
||||
Total int64 `json:"total"`
|
||||
List domainmod.DomainList `json:"list"`
|
||||
}
|
||||
|
||||
// 添加域名
|
||||
type AddDomainInfoReq struct {
|
||||
domainmod.Domain
|
||||
}
|
||||
|
||||
// 修改域名
|
||||
type UpdateDomainInfoReq struct {
|
||||
Id primitive.ObjectID `json:"id" binding:"required"`
|
||||
Update domainmod.DomainDoc `json:"update"`
|
||||
}
|
||||
|
||||
// 删除域名
|
||||
type DelDomainInfoReq struct {
|
||||
Id primitive.ObjectID `json:"id" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user