123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- import "../base.api"
- import "./work_experience.api"
- import "./tutorial.api"
- import "./employee_config.api"
- type (
-
- EmployeeInfo {
- BaseIDInfo
-
- Title *string `json:"title,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Tags *string `json:"tags,optional"`
-
- HireCount *int `json:"hireCount,optional"`
-
- ServiceCount *int `json:"serviceCount,optional"`
-
- AchievementCount *int `json:"achievementCount,optional"`
-
- CategoryId *uint64 `json:"categoryId,optional"`
-
- Intro *string `json:"intro,optional"`
-
- Estimate *string `json:"estimate,optional"`
-
- Skill *string `json:"skill,optional"`
-
- AbilityType *string `json:"abilityType,optional"`
-
- Scene *string `json:"scene,optional"`
- SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
-
- SwitchIn *string `json:"switchIn,optional"`
- SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
- Tutorial []TutorialInfo `json:"tutorial,optional"`
-
- VideoUrl *string `json:"videoUrl,optional"`
-
- WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
- }
-
- EmployeeListResp {
- BaseDataInfo
-
- Data EmployeeListInfo `json:"data"`
- }
-
- EmployeeListInfo {
- BaseListInfo
-
- Data []EmployeeInfo `json:"data"`
- }
-
- EmployeeListReq {
- PageInfo
-
- Title *string `json:"title,optional"`
-
- Tags *string `json:"tags,optional"`
-
- CategoryId *uint64 `json:"categoryId,optional"`
- }
-
- EmployeeInfoResp {
- BaseDataInfo
-
- Data EmployeeInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: employee
- middleware: Authority
- )
- service Wechat {
-
- @handler createEmployee
- post /employee/create (EmployeeInfo) returns (BaseMsgResp)
-
- @handler updateEmployee
- post /employee/update (EmployeeInfo) returns (BaseMsgResp)
-
- @handler deleteEmployee
- post /employee/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getEmployeeList
- post /employee/list (EmployeeListReq) returns (EmployeeListResp)
-
- @handler getEmployeeById
- post /employee (IDReq) returns (EmployeeInfoResp)
- }
|