employee_config.api 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import "../base.api"
  2. type (
  3. // The data of employee config information | EmployeeConfig信息
  4. EmployeeConfigInfo {
  5. BaseIDInfo
  6. // 类型:scene-场景 switch_in-接入方式
  7. Stype *string `json:"stype,optional"`
  8. // 标题
  9. Title *string `json:"title,optional"`
  10. // 图片地址
  11. Photo *string `json:"photo,optional"`
  12. }
  13. // EmployeeConfig list data | EmployeeConfig列表数据
  14. EmployeeConfigListInfo {
  15. BaseListInfo
  16. // The API list data | EmployeeConfig列表数据
  17. Data []EmployeeConfigInfo `json:"data"`
  18. }
  19. // Employee config response | Employee配置信息返回体
  20. EmployeeConfigListReq {
  21. /// 类型:scene-场景 switch_in-接入方式
  22. Stype *string `json:"stype,optional"`
  23. }
  24. // EmployeeConfig information response | EmployeeConfig信息返回体
  25. EmployeeConfig {
  26. Scene []EmployeeConfigInfo `json:"scene"`
  27. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  28. }
  29. // Employee config response | Employee配置信息返回体
  30. EmployeeConfigListResp {
  31. BaseDataInfo
  32. // Employee information | Employee数据
  33. Data EmployeeConfig `json:"data"`
  34. }
  35. )
  36. @server(
  37. jwt: Auth
  38. group: employee_config
  39. middleware: Authority
  40. )
  41. service Wechat {
  42. // Get employee config list | 获取EmployeeConfig列表
  43. @handler getEmployeeListConfig
  44. get /employee_config/list (EmployeeConfigListReq) returns (EmployeeConfigListResp)
  45. }