up.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. syntax = "proto3";
  2. package archive.service.up.v1;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "v1";
  5. // UpActivity up主活跃度信息
  6. message UpActivity {
  7. // mid up主id
  8. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  9. // activity 活跃度
  10. int32 activity = 2
  11. [(gogoproto.jsontag) = "activity", (gogoproto.casttype) = "int8"];
  12. }
  13. // UpGroup up主的特殊用户组信息
  14. message UpGroup {
  15. // id 分组ID
  16. int64 id = 1 [(gogoproto.jsontag) = "id", (gogoproto.customname) = "ID"];
  17. // name 分组名
  18. string name = 2 [(gogoproto.jsontag) = "name"];
  19. // tag 标签名称
  20. string tag = 3 [(gogoproto.jsontag) = "tag"];
  21. // tag 标签简称
  22. string short_tag = 4 [(gogoproto.jsontag) = "short_tag"];
  23. // font_color 字体色
  24. string font_color = 5 [(gogoproto.jsontag) = "font_color"];
  25. // bg_color 背景色
  26. string bg_color = 6 [(gogoproto.jsontag) = "bg_color"];
  27. // note 备注
  28. string note = 7 [(gogoproto.jsontag) = "note"];
  29. }
  30. // UpSpecial up主的特殊属性
  31. message UpSpecial {
  32. // group_ids 特殊属性数组
  33. repeated int64 group_ids = 1
  34. [(gogoproto.jsontag) = "group_ids", (gogoproto.customname) = "GroupIDs"];
  35. }