feat: add Go backend
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
package approval
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/approval/list" method:"get" tags:"审批中心" summary:"获取审批列表"`
|
||||
sysin.ApprovalListInp
|
||||
}
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.ApprovalListModel `json:"list" dc:"数据列表"`
|
||||
}
|
||||
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/approval/view" method:"get" tags:"审批中心" summary:"获取审批详情"`
|
||||
sysin.ApprovalViewInp
|
||||
}
|
||||
type ViewRes struct{ *sysin.ApprovalViewModel }
|
||||
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/approval/create" method:"post" tags:"审批中心" summary:"创建审批草稿"`
|
||||
sysin.ApprovalCreateInp
|
||||
}
|
||||
type CreateRes struct{ *sysin.ApprovalCreateModel }
|
||||
|
||||
type SubmitReq struct {
|
||||
g.Meta `path:"/approval/submit" method:"post" tags:"审批中心" summary:"提交审批"`
|
||||
sysin.ApprovalSubmitInp
|
||||
}
|
||||
type SubmitRes struct{}
|
||||
|
||||
type ApproveReq struct {
|
||||
g.Meta `path:"/approval/approve" method:"post" tags:"审批中心" summary:"通过审批"`
|
||||
sysin.ApprovalDecisionInp
|
||||
}
|
||||
type ApproveRes struct{}
|
||||
|
||||
type RejectReq struct {
|
||||
g.Meta `path:"/approval/reject" method:"post" tags:"审批中心" summary:"驳回审批"`
|
||||
sysin.ApprovalDecisionInp
|
||||
}
|
||||
type RejectRes struct{}
|
||||
|
||||
type CancelReq struct {
|
||||
g.Meta `path:"/approval/cancel" method:"post" tags:"审批中心" summary:"取消审批"`
|
||||
sysin.ApprovalCancelInp
|
||||
}
|
||||
type CancelRes struct{}
|
||||
Reference in New Issue
Block a user