card.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. syntax = "proto3";
  2. package common;
  3. option go_package = "ttmylife.com/zeuszhao/types/card/common;common";
  4. option java_multiple_files = true;
  5. option java_package = "common";
  6. enum CardStatus {
  7. CARD_STATUS_UNDEFINED = 0;
  8. CARD_STATUS_NORMAL = 1;
  9. CARD_STATUS_DELETED = 2;
  10. }
  11. enum CardType {
  12. CARD_TYPE_UNDEFINED = 0;
  13. CARD_TYPE_SELF = 1;
  14. CARD_TYPE_OTHER = 2;
  15. }
  16. message CardTemplateBody {
  17. uint32 id = 1;
  18. CardTemplateBaseBody body = 2;
  19. }
  20. message CardSupplementBody {
  21. uint32 id = 1;
  22. CardSupplementBaseBody body = 2;
  23. }
  24. message CardSupplementBaseBody {
  25. uint32 card_id = 1;
  26. string key_name = 2;
  27. string key_value = 3;
  28. }
  29. message CardTemplateBaseBody {
  30. string name = 1;
  31. string title_color = 2;
  32. string subtitle_color = 3;
  33. string contact_color = 4;
  34. string background_img = 5;
  35. }
  36. message CardBody {
  37. uint32 id = 1;
  38. CardBaseBody body = 2;
  39. }
  40. message CardBaseBody {
  41. string name = 1;
  42. string title = 2;
  43. string company_name = 3;
  44. string company_short_name = 4;
  45. uint32 template_id = 5;
  46. uint32 user_id = 6;
  47. CardStatus status = 7;
  48. string search_key = 8;
  49. CardType type = 9;
  50. uint64 created = 10;
  51. }
  52. message CardUser {
  53. uint32 user_id = 1;
  54. uint32 card_id = 2;
  55. }
  56. message CardFilterBody {
  57. string name = 1;
  58. string title = 2;
  59. string company_name = 3;
  60. string company_short_name = 4;
  61. string search_key = 5;
  62. uint32 user_id = 6;
  63. CardType type = 7;
  64. CardStatus status = 8;
  65. }