syntax = "proto3"; package country; import "google/protobuf/timestamp.proto"; option go_package = "hilo/api/country;country"; // 定义服务 service Country { rpc GetCountryByShortName (GetCountryByShortNameReq) returns (GetCountryByShortNameRep) { } } message CountryModel { int64 Id = 1; string Name = 2; string ShortName = 3; string Code = 4; string Icon = 5; string Icon2 = 6; string Lang = 7; int32 IsCommon = 8; int32 IsDefault = 9 ; int32 Status = 10; google.protobuf.Timestamp CreatedTime = 11; google.protobuf.Timestamp UpdatedTime = 12; string StandardShortName = 13; } message GetCountryByShortNameReq { string ShortName = 1; // @gotags: validate:"required" } message GetCountryByShortNameRep { CountryModel data = 1; }