data_supplement.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package apis
  4. type SupplementData struct{
  5. Title string `json:"title"`
  6. Key string `json:"key"`
  7. Value string `json:"value"`
  8. Type string `json:"type"`
  9. Index int `json:"-"`
  10. }
  11. type TGdDataEditorSearch struct {
  12. Id int64 `json:"id"`
  13. SearchCode string `json:"search_code"`
  14. SearchName string `json:"search_name"`
  15. DbCode string `json:"db_code"`
  16. }
  17. type Search struct {
  18. SearchKey string `json:"search_key"`
  19. SearchName string `json:"search_name"`
  20. SearchValue string `json:"search_value"`
  21. Type string `json:"type"`
  22. }
  23. type SearchElement struct {
  24. SearchCode string `json:"search_code"`
  25. SearchName string `json:"search_name"`
  26. Keys []Search `json:"keys"`
  27. }
  28. // 获取补充数据标题
  29. type ManagementGetSuplementTitleReq struct {
  30. DbCode string `json:"db_code"`
  31. }
  32. type ManagementGetSuplementTitleReply struct {
  33. DataTitle []SupplementData `json:"data_title"`
  34. SearchData []SearchElement `json:"search_data"`
  35. }
  36. // 获取将要补充的数据
  37. type ManagementGetDataSupplementReq struct {
  38. SearchCode string `json:"search_code"`
  39. Keys []Search `json:"keys"`
  40. }
  41. type ManagementGetDataSupplementReply struct {
  42. List []SupplementData `json:"list"`
  43. Id int64 `json:"id"`
  44. }
  45. // 提交补充的数据
  46. type ManagementUpdateDataSupplementReq struct {
  47. SearchCode string `json:"search_code"`
  48. List []SupplementData `json:"list"`
  49. Id int64 `json:"id"`
  50. }
  51. type ManagementUpdateDataSupplementReply struct {
  52. Id int64 `json:"id"`
  53. }
  54. type TGdDataEditorDb struct {
  55. Id int64 `json:"id"`
  56. DbName string `json:"db_name"`
  57. DbCode string `json:"db_code"`
  58. }
  59. // 获取所有库
  60. type ManagementGetSupplementDbReq struct {
  61. }
  62. type ManagementGetSupplementDbReply struct {
  63. List []TGdDataEditorDb `json:"list"`
  64. }