1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import "../base.api"
- import "./sop_stage.api"
- type (
-
- SopNodeListResp {
- BaseDataInfo
-
- Data []*SopChildNodeInfo `json:"data"`
- }
-
- SopChildNodeInfo {
- NodeName *string `json:"nodeName,optional"`
- ChildNode *SopChildNodeInfo `json:"childNode,optional"`
-
- ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
- SopNodeInfo
- }
-
- SopNodeListInfo {
- BaseListInfo
-
- Data []SopNodeInfo `json:"data"`
- }
-
- SopNodeListReq {
- StageId *uint64 `json:"stageId"`
- }
-
- SopNodeInfoResp {
- BaseDataInfo
-
- Data SopNodeInfo `json:"data"`
- }
-
- SopNodeCreateResp {
- BaseDataInfo
-
- Data uint64 `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: sop_node
- middleware: Authority
- )
- service Wechat {
-
- @handler createSopNode
- post /sop_node/create (SopNodeInfo) returns (SopNodeCreateResp)
-
- @handler updateSopNode
- post /sop_node/update (SopNodeInfo) returns (BaseMsgResp)
-
- @handler deleteSopNode
- post /sop_node/delete (IDReq) returns (BaseMsgResp)
-
- @handler getSopNodeList
- post /sop_node/list (SopNodeListReq) returns (SopNodeListResp)
-
- @handler getSopNodeDetail
- post /sop_node/detail (IDReq) returns (SopNodeInfoResp)
- }
|