1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- import "../base.api"
- type (
-
- TutorialInfo {
- BaseIDInfo
-
- EmployeeId *uint64 `json:"employeeId,optional"`
-
- Index *int `json:"index,optional"`
-
- Title *string `json:"title,optional"`
-
- Content *string `json:"content,optional"`
- }
-
- TutorialListResp {
- BaseDataInfo
-
- Data TutorialListInfo `json:"data"`
- }
-
- TutorialListInfo {
- BaseListInfo
-
- Data []TutorialInfo `json:"data"`
- }
-
- TutorialListReq {
- PageInfo
-
- Title *string `json:"title,optional"`
-
- Content *string `json:"content,optional"`
- }
-
- TutorialInfoResp {
- BaseDataInfo
-
- Data TutorialInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: tutorial
- middleware: Authority
- )
- service Wechat {
-
- @handler createTutorial
- post /tutorial/create (TutorialInfo) returns (BaseMsgResp)
-
- @handler updateTutorial
- post /tutorial/update (TutorialInfo) returns (BaseMsgResp)
-
- @handler deleteTutorial
- post /tutorial/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getTutorialList
- post /tutorial/list (TutorialListReq) returns (TutorialListResp)
-
- @handler getTutorialById
- post /tutorial (IDReq) returns (TutorialInfoResp)
- }
|