69 lines
1.6 KiB
Go
69 lines
1.6 KiB
Go
package iminvite
|
|
|
|
import (
|
|
"hotgo/internal/model/input/form"
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type ListReq struct {
|
|
g.Meta `path:"/imInvite/list" method:"post" tags:"IM邀请码" summary:"获取IM注册邀请码列表"`
|
|
sysin.ImInviteListInp
|
|
}
|
|
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*sysin.ImInviteCodeModel `json:"list" dc:"数据列表"`
|
|
}
|
|
|
|
type CreateReq struct {
|
|
g.Meta `path:"/imInvite/create" method:"post" tags:"IM邀请码" summary:"生成IM注册邀请码"`
|
|
sysin.ImInviteCreateInp
|
|
}
|
|
|
|
type CreateRes struct {
|
|
*sysin.ImInviteCodeModel
|
|
}
|
|
|
|
type BatchCreateReq struct {
|
|
g.Meta `path:"/imInvite/batchCreate" method:"post" tags:"IM邀请码" summary:"批量生成IM注册邀请码"`
|
|
sysin.ImInviteBatchCreateInp
|
|
}
|
|
|
|
type BatchCreateRes struct {
|
|
*sysin.ImInviteBatchModel
|
|
}
|
|
|
|
type BatchViewReq struct {
|
|
g.Meta `path:"/imInvite/batchView" method:"get" tags:"IM邀请码" summary:"查看IM注册邀请码批次"`
|
|
sysin.ImInviteBatchViewInp
|
|
}
|
|
|
|
type BatchViewRes struct {
|
|
*sysin.ImInviteBatchDetailModel
|
|
}
|
|
|
|
type RevokeReq struct {
|
|
g.Meta `path:"/imInvite/revoke" method:"post" tags:"IM邀请码" summary:"撤销IM注册邀请码"`
|
|
sysin.ImInviteRevokeInp
|
|
}
|
|
|
|
type RevokeRes struct{}
|
|
|
|
type BatchRevokeReq struct {
|
|
g.Meta `path:"/imInvite/batchRevoke" method:"post" tags:"IM邀请码" summary:"批量撤销IM注册邀请码"`
|
|
sysin.ImInviteBatchRevokeInp
|
|
}
|
|
|
|
type BatchRevokeRes struct {
|
|
*sysin.ImInviteBatchModel
|
|
}
|
|
|
|
type ExportReq struct {
|
|
g.Meta `path:"/imInvite/export" method:"post" tags:"IM邀请码" summary:"导出IM注册邀请码"`
|
|
sysin.ImInviteListInp
|
|
}
|
|
|
|
type ExportRes struct{}
|