123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- import "../base.api"
- type (
-
- SopStageInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- TaskId *uint64 `json:"taskId,optional"`
-
- Name *string `json:"name,optional"`
-
- ConditionType *int `json:"conditionType,optional"`
-
- ConditionOperator *int `json:"conditionOperator,optional"`
-
- ConditionList []Condition `json:"conditionList,optional"`
-
- ActionMessage []Action `json:"actionMessage,optional"`
-
- ActionLabel []uint64 `json:"actionLabel,optional"`
-
- IndexSort *int `json:"indexSort,optional"`
-
- TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
-
- NodeList []SopNodeInfo `json:"nodeList,optional"`
- }
-
- SopTaskInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Name *string `json:"name,optional"`
-
- BotWxidList []string `json:"botWxidList,optional"`
-
- Type *int `json:"type,optional"`
-
- PlanStartTime *int64 `json:"planStartTime,optional"`
-
- PlanEndTime *int64 `json:"planEndTime,optional"`
-
- CreatorId *string `json:"creatorId,optional"`
-
- StageList []SopStageInfo `json:"stageList,optional"`
- }
-
- SopNodeInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- StageId *uint64 `json:"stageId,optional"`
-
- ParentId *uint64 `json:"parentId,optional"`
-
- Name *string `json:"name,optional"`
-
- ConditionType *int `json:"conditionType,optional"`
-
- ConditionList []string `json:"conditionList,optional"`
-
- ActionMessage []Action `json:"actionMessage,optional"`
-
- ActionLabel []uint64 `json:"actionLabel,optional"`
-
- StageInfo *SopStageInfo `json:"stageInfo,optional"`
- }
-
- SopStageListResp {
- BaseDataInfo
-
- Data SopStageListInfo `json:"data"`
- }
-
- SopStageListInfo {
- BaseListInfo
-
- Data []SopStageInfo `json:"data"`
- }
-
- SopStageListReq {
- TaskId *uint64 `json:"taskId"`
- }
-
- SopStageInfoResp {
- BaseDataInfo
-
- Data SopStageInfo `json:"data"`
- }
-
- SopStageMoveReq {
- BaseIDInfo
-
- Offset *int `json:"offset,optional"`
- }
- )
- @server(
- jwt: Auth
- group: sop_stage
- middleware: Authority
- )
- service Wechat {
-
- @handler createSopStage
- post /sop_stage/create (SopStageInfo) returns (BaseMsgResp)
-
- @handler updateSopStage
- post /sop_stage/update (SopStageInfo) returns (BaseMsgResp)
-
- @handler deleteSopStage
- post /sop_stage/delete (IDReq) returns (BaseMsgResp)
-
- @handler getSopStageList
- post /sop_stage/list (SopStageListReq) returns (SopStageListResp)
-
- @handler getSopStageById
- post /sop_stage (IDReq) returns (SopStageInfoResp)
-
- @handler getSopStageDetail
- post /sop_stage/detail (IDReq) returns (SopStageInfoResp)
-
- @handler moveSopStage
- post /sop_stage/move (SopStageMoveReq) returns (BaseMsgResp)
- }
|