feat: add Go backend
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
package appmember
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/appMember/list" method:"get" tags:"会员管理" summary:"会员列表"`
|
||||
sysin.AppMemberListInp
|
||||
}
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.AppMemberListModel `json:"list"`
|
||||
}
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/appMember/view" method:"get" tags:"会员管理" summary:"会员详情"`
|
||||
sysin.AppMemberViewInp
|
||||
}
|
||||
type ViewRes struct{ *sysin.AppMemberViewModel }
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/appMember/edit" method:"post" tags:"会员管理" summary:"新增编辑会员"`
|
||||
sysin.AppMemberEditInp
|
||||
}
|
||||
type EditRes struct{}
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/appMember/delete" method:"post" tags:"会员管理" summary:"注销会员"`
|
||||
sysin.AppMemberDeleteInp
|
||||
}
|
||||
type DeleteRes struct{}
|
||||
type AutoDispatchReq struct {
|
||||
g.Meta `path:"/appMember/autoDispatch" method:"post" tags:"会员管理" summary:"切换派单模式"`
|
||||
sysin.AppMemberAutoDispatchInp
|
||||
}
|
||||
type AutoDispatchRes struct{}
|
||||
type CategoryReq struct {
|
||||
g.Meta `path:"/appMember/category" method:"post" tags:"会员管理" summary:"切换会员真人假人类别"`
|
||||
sysin.AppMemberCategoryInp
|
||||
}
|
||||
type CategoryRes struct{}
|
||||
|
||||
type PaymentListReq struct {
|
||||
g.Meta `path:"/appMember/paymentList" method:"get" tags:"会员管理" summary:"收款账户列表"`
|
||||
sysin.AppMemberPaymentListInp
|
||||
}
|
||||
type PaymentListRes struct {
|
||||
List []*sysin.AppMemberPaymentModel `json:"list"`
|
||||
}
|
||||
type PaymentEditReq struct {
|
||||
g.Meta `path:"/appMember/paymentEdit" method:"post" tags:"会员管理" summary:"新增编辑收款账户"`
|
||||
sysin.AppMemberPaymentEditInp
|
||||
}
|
||||
type PaymentEditRes struct{}
|
||||
type PaymentDeleteReq struct {
|
||||
g.Meta `path:"/appMember/paymentDelete" method:"post" tags:"会员管理" summary:"删除收款账户"`
|
||||
sysin.AppMemberPaymentDeleteInp
|
||||
}
|
||||
type PaymentDeleteRes struct{}
|
||||
|
||||
type AddressListReq struct {
|
||||
g.Meta `path:"/appMember/addressList" method:"get" tags:"会员管理" summary:"地址列表"`
|
||||
sysin.AppMemberAddressListInp
|
||||
}
|
||||
type AddressListRes struct {
|
||||
List []*sysin.AppMemberAddressModel `json:"list"`
|
||||
}
|
||||
type AddressEditReq struct {
|
||||
g.Meta `path:"/appMember/addressEdit" method:"post" tags:"会员管理" summary:"新增编辑地址"`
|
||||
sysin.AppMemberAddressEditInp
|
||||
}
|
||||
type AddressEditRes struct{}
|
||||
type AddressDeleteReq struct {
|
||||
g.Meta `path:"/appMember/addressDelete" method:"post" tags:"会员管理" summary:"删除地址"`
|
||||
sysin.AppMemberAddressDeleteInp
|
||||
}
|
||||
type AddressDeleteRes struct{}
|
||||
|
||||
type SensitiveReq struct {
|
||||
g.Meta `path:"/appMember/sensitive" method:"post" tags:"会员管理" summary:"授权查看敏感信息"`
|
||||
sysin.AppMemberSensitiveInp
|
||||
}
|
||||
type SensitiveRes struct{ *sysin.AppMemberSensitiveModel }
|
||||
type TeamReq struct {
|
||||
g.Meta `path:"/appMember/team" method:"get" tags:"会员管理" summary:"团队查询"`
|
||||
sysin.AppMemberTeamInp
|
||||
}
|
||||
type TeamRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.AppMemberTeamModel `json:"list"`
|
||||
}
|
||||
|
||||
type StatusRequestReq struct {
|
||||
g.Meta `path:"/appMember/statusRequest" method:"post" tags:"会员管理" summary:"发起会员状态审批"`
|
||||
sysin.AppMemberStatusRequestInp
|
||||
}
|
||||
type StatusRequestRes struct{ *sysin.AppMemberApprovalModel }
|
||||
type StatusExecuteReq struct {
|
||||
g.Meta `path:"/appMember/statusExecute" method:"post" tags:"会员管理" summary:"执行已审批会员状态变更"`
|
||||
sysin.AppMemberStatusExecuteInp
|
||||
}
|
||||
type StatusExecuteRes struct{}
|
||||
|
||||
type WalletListReq struct {
|
||||
g.Meta `path:"/appMember/walletList" method:"get" tags:"会员管理" summary:"资金调账列表"`
|
||||
sysin.WalletAdjustmentListInp
|
||||
}
|
||||
type WalletListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.WalletAdjustmentListModel `json:"list"`
|
||||
}
|
||||
type LedgerListReq struct {
|
||||
g.Meta `path:"/appMember/ledgerList" method:"get" tags:"会员管理" summary:"会员账变流水"`
|
||||
sysin.WalletLedgerListInp
|
||||
}
|
||||
type LedgerListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.WalletLedgerListModel `json:"list"`
|
||||
}
|
||||
type WalletRequestReq struct {
|
||||
g.Meta `path:"/appMember/walletRequest" method:"post" tags:"会员管理" summary:"发起资金调账审批"`
|
||||
sysin.WalletAdjustmentRequestInp
|
||||
}
|
||||
type WalletRequestRes struct{ *sysin.AppMemberApprovalModel }
|
||||
type WalletExecuteReq struct {
|
||||
g.Meta `path:"/appMember/walletExecute" method:"post" tags:"会员管理" summary:"执行已审批资金调账"`
|
||||
sysin.WalletAdjustmentExecuteInp
|
||||
}
|
||||
type WalletExecuteRes struct{}
|
||||
|
||||
type NoticeListReq struct {
|
||||
g.Meta `path:"/appMember/noticeList" method:"get" tags:"会员管理" summary:"会员通知列表"`
|
||||
sysin.MemberNoticeListInp
|
||||
}
|
||||
type NoticeListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.MemberNoticeListModel `json:"list"`
|
||||
}
|
||||
type NoticeEditReq struct {
|
||||
g.Meta `path:"/appMember/noticeEdit" method:"post" tags:"会员管理" summary:"创建会员通知"`
|
||||
sysin.MemberNoticeEditInp
|
||||
}
|
||||
type NoticeEditRes struct{}
|
||||
type NoticeRevokeReq struct {
|
||||
g.Meta `path:"/appMember/noticeRevoke" method:"post" tags:"会员管理" summary:"撤回会员通知"`
|
||||
sysin.MemberNoticeRevokeInp
|
||||
}
|
||||
type NoticeRevokeRes struct{}
|
||||
Reference in New Issue
Block a user