123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- import "../base.api"
- import "./sop_stage.api"
- type (
-
- SopNodeListResp {
- BaseDataInfo
-
- Data []*SopChildNodeInfo `json:"data"`
- }
-
- SopNodeListResp2 {
- BaseDataInfo
-
- Data []*SopNodeInfoWithLable `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"`
- }
-
- BatchSopNodeListReq {
- StageIds []uint64 `json:"stageIds"`
- }
-
- SopNodeInfoResp {
- BaseDataInfo
-
- Data SopNodeInfo `json:"data"`
- }
-
- SopNodeCreateResp {
- BaseDataInfo
-
- Data uint64 `json:"data"`
- }
- )
- @server(
- group: sop_node
- )
- service Wechat {
-
- @handler getApiSopNodeList
- post /api/sop_node/list (BatchSopNodeListReq) returns (SopNodeListResp2)
- }
- @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)
- }
|