tag.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. syntax = "proto3";
  2. import "public.proto";
  3. package pcds.tag.v1;
  4. /*
  5. * Tag 服务
  6. *
  7. *
  8. *
  9. */
  10. service Tag{
  11. rpc GetResListByTag (ResListRequest) returns (TagListReply){}
  12. rpc GetTagListByRes (TagListResRequest) returns (TagListReply){}
  13. rpc GetTagListForStudio (TagListRequest) returns (TagListReply){}
  14. rpc GetTag (TagRequest) returns (TagReply){}
  15. rpc SetTag (TagRequest) returns (TagReply){}
  16. rpc AddTag (TagRequest) returns (TagReply){}
  17. rpc DelTag (TagRequest) returns (TagReply){}
  18. }
  19. message TagListRequest{
  20. string Id = 1;
  21. string Search = 3;
  22. EnumAllowingSearch SearchCol = 4;
  23. int32 CurrentPage = 5;
  24. int32 PerPage = 6;
  25. EnumAllowingOrderby OrderBy = 7;
  26. bool Desc = 8;
  27. }
  28. message ResListRequest{
  29. repeated string TagId = 1;
  30. EnumResType ResType = 2;
  31. }
  32. message TagListResRequest{
  33. repeated string ResId = 1;
  34. }
  35. enum EnumAllowingSearch{
  36. EAS_Name = 0;
  37. }
  38. enum EnumAllowingOrderby{
  39. EAO_UPDATED_AT = 0;
  40. EAO_CREATED_AT = 1;
  41. EAO_Name = 2;
  42. }
  43. message TagRequest{
  44. string Id = 1;
  45. string Name = 2;
  46. string Description = 3;
  47. int32 Color = 4;
  48. Studio Studio = 5;
  49. string Lang = 51;
  50. User Editor = 52;
  51. EnumPublicity Publicity = 53;
  52. string CreatedAt = 101;
  53. string UpdatedAt = 102;
  54. }
  55. message TagReply{
  56. bool ok = 1;
  57. string message = 2;
  58. TagRequest data = 3;
  59. }
  60. message TagListReply{
  61. bool ok = 1;
  62. string message = 2;
  63. message data{
  64. repeated TagRequest rows = 1;
  65. int32 Count = 2;
  66. int32 CurrentPage = 3;
  67. int32 PerPage = 4;
  68. }
  69. }