58 lines
1.7 KiB
Go
58 lines
1.7 KiB
Go
package urlpool
|
|
|
|
import (
|
|
"hotgo/internal/model/input/form"
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
type ListReq struct {
|
|
g.Meta `path:"/urlPool/list" method:"get" tags:"URL地址池" summary:"获取URL地址池列表"`
|
|
sysin.UrlPoolListInp
|
|
}
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*sysin.UrlPoolListModel `json:"list"`
|
|
}
|
|
|
|
type ViewReq struct {
|
|
g.Meta `path:"/urlPool/view" method:"get" tags:"URL地址池" summary:"获取URL地址详情"`
|
|
sysin.UrlPoolViewInp
|
|
}
|
|
type ViewRes struct{ *sysin.UrlPoolViewModel }
|
|
|
|
type EditReq struct {
|
|
g.Meta `path:"/urlPool/edit" method:"post" tags:"URL地址池" summary:"新增或编辑URL地址"`
|
|
sysin.UrlPoolEditInp
|
|
}
|
|
type EditRes struct{}
|
|
|
|
type StatusReq struct {
|
|
g.Meta `path:"/urlPool/status" method:"post" tags:"URL地址池" summary:"切换URL地址状态"`
|
|
sysin.UrlPoolStatusInp
|
|
}
|
|
type StatusRes struct{}
|
|
|
|
type ImportReq struct {
|
|
g.Meta `path:"/urlPool/import" method:"post" mime:"multipart/form-data" tags:"URL地址池" summary:"Excel批量导入URL地址"`
|
|
File *ghttp.UploadFile `json:"file" type:"file" v:"required#请选择Excel文件" dc:"Excel文件"`
|
|
}
|
|
type ImportRes struct{ *sysin.UrlPoolImportModel }
|
|
|
|
type MemberListReq struct {
|
|
g.Meta `path:"/urlPool/memberList" method:"get" tags:"URL地址池" summary:"获取地址绑定会员"`
|
|
sysin.UrlPoolMemberListInp
|
|
}
|
|
type MemberListRes struct {
|
|
form.PageRes
|
|
List []*sysin.UrlPoolMemberListModel `json:"list"`
|
|
}
|
|
|
|
type SummaryReq struct {
|
|
g.Meta `path:"/urlPool/summary" method:"get" tags:"URL地址池" summary:"获取URL地址池汇总"`
|
|
sysin.UrlPoolSummaryInp
|
|
}
|
|
type SummaryRes struct{ *sysin.UrlPoolSummaryModel }
|