123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- 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"`
- ApiBase *string `json:"apiBase,optional"`
- ApiKey *string `json:"apiKey,optional"`
-
- AiInfo *string `json:"aiInfo,optional"`
- ShowChat *bool `json:"showChat,optional"`
- IsVip *bool `json:"isVip,optional"`
-
- ChatUrl *string `json:"chatUrl,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"`
- }
- AuthReq {
- Token *string `json:"token,optional"`
- Data uint64 `json:"data,optional"`
- }
- AuthResp {
- Token *string `json:"token,optional"`
- Data *uint64 `json:"data,optional"`
- Original interface{} `json:"original,optional"`
- OK interface{} `json:"ok,optional"`
- SecretKey string `json:"secretKey,optional"`
- }
- )
- @server(
- group: employee
- )
- service Wechat {
-
- @handler getApiEmployeeList
- post /api/employee/list (EmployeeListReq) returns (EmployeeListResp)
-
- @handler getApiEmployeeDetail
- post /api/employee/detail (IDReq) returns (EmployeeInfoResp)
- }
- @server(
- group: employee
- )
- service Wechat {
-
- @handler getEmployeeSearch
- post /employee/search (EmployeeListReq) returns (EmployeeListResp)
-
- @handler getEmployeeSearchTest
- post /employee/search/test (AuthReq) returns (AuthResp)
-
- @handler getEmployeeDetail
- post /employee/detail (IDReq) returns (EmployeeInfoResp)
- }
- @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)
- }
|