20 lines
481 B
Protocol Buffer
20 lines
481 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package model;
|
||
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
||
|
|
||
|
option (gogoproto.goproto_enum_prefix_all) = false;
|
||
|
option (gogoproto.goproto_getters_all) = false;
|
||
|
option (gogoproto.unmarshaler_all) = true;
|
||
|
option (gogoproto.marshaler_all) = true;
|
||
|
option (gogoproto.sizer_all) = true;
|
||
|
|
||
|
message Aids {
|
||
|
repeated int64 IDs = 1 [(gogoproto.jsontag) = "id"];
|
||
|
}
|
||
|
message Region {
|
||
|
map<int32,Aids> aids = 1;
|
||
|
}
|
||
|
message Tag {
|
||
|
map<string,Aids> aids = 1;
|
||
|
}
|