proto.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. syntax = "proto3";
  2. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  3. option go_package = "model";
  4. option (gogoproto.goproto_enum_prefix_all) = false;
  5. option (gogoproto.goproto_getters_all) = false;
  6. option (gogoproto.unmarshaler_all) = true;
  7. option (gogoproto.marshaler_all) = true;
  8. option (gogoproto.sizer_all) = true;
  9. message AidReason {
  10. int64 Aid = 1 [(gogoproto.jsontag) ="aid"];
  11. string Reason = 2 [(gogoproto.jsontag) ="reason"];
  12. }
  13. message AidReasons {
  14. repeated AidReason List = 1;
  15. }
  16. message ThemeDetail {
  17. int64 ID = 1 [(gogoproto.jsontag) ="id"];
  18. string Name = 2 [(gogoproto.jsontag) ="name"];
  19. string Icon = 3 [(gogoproto.jsontag) ="icon"];
  20. string TopPhoto = 4 [(gogoproto.jsontag) ="top_photo"];
  21. string BgImg = 5 [(gogoproto.jsontag) ="bg_img"];
  22. int64 IsActivated = 6 [(gogoproto.jsontag) ="is_activated"];
  23. }
  24. message ThemeDetails {
  25. repeated ThemeDetail List = 1;
  26. }
  27. message Notice {
  28. string Notice = 1 [(gogoproto.jsontag) ="notice"];
  29. int64 IsForbid = 2 [(gogoproto.jsontag) ="is_forbid"];
  30. }