model.proto 433 B

1234567891011121314
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  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 Article {
  10. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  11. string Title = 3 [(gogoproto.jsontag) = "title"];
  12. }