diff --git a/client/_proto/spec/v1/userdata_pb.d.ts b/client/_proto/spec/v1/userdata_pb.d.ts index 056f8094b..72dbf49c9 100644 --- a/client/_proto/spec/v1/userdata_pb.d.ts +++ b/client/_proto/spec/v1/userdata_pb.d.ts @@ -1205,10 +1205,17 @@ export declare class DeleteRaceResultRequest extends Message [ { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "admin_jwt", kind: "message", T: JWT }, + { no: 2, name: "members", kind: "message", T: RaceDetail_Member, repeated: true }, + { no: 3, name: "admin_jwt", kind: "message", T: JWT }, ], ); diff --git a/docs/protobuf.md b/docs/protobuf.md index 0b0f657bf..30060f075 100644 --- a/docs/protobuf.md +++ b/docs/protobuf.md @@ -150,6 +150,7 @@ | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | id | [uint32](#uint32) | | 対象を指定するため必須 | +| members | [RaceDetail.Member](#spec-v1-RaceDetail-Member) | repeated | 削除対象の馬を指定 | | admin_jwt | [JWT](#spec-v1-JWT) | | admin JWT | diff --git a/go/_proto/spec/v1/userdata.pb.go b/go/_proto/spec/v1/userdata.pb.go index 4d611aa28..d937c156a 100644 --- a/go/_proto/spec/v1/userdata.pb.go +++ b/go/_proto/spec/v1/userdata.pb.go @@ -1999,8 +1999,10 @@ type DeleteRaceResultRequest struct { // 対象を指定するため必須 Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // 削除対象の馬を指定 + Members []*RaceDetail_Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` // admin JWT - AdminJwt *JWT `protobuf:"bytes,2,opt,name=admin_jwt,json=adminJwt,proto3" json:"admin_jwt,omitempty"` + AdminJwt *JWT `protobuf:"bytes,3,opt,name=admin_jwt,json=adminJwt,proto3" json:"admin_jwt,omitempty"` } func (x *DeleteRaceResultRequest) Reset() { @@ -2042,6 +2044,13 @@ func (x *DeleteRaceResultRequest) GetId() uint32 { return 0 } +func (x *DeleteRaceResultRequest) GetMembers() []*RaceDetail_Member { + if x != nil { + return x.Members + } + return nil +} + func (x *DeleteRaceResultRequest) GetAdminJwt() *JWT { if x != nil { return x.AdminJwt @@ -2636,96 +2645,100 @@ var file_spec_v1_userdata_proto_rawDesc = []byte{ 0x0a, 0x06, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x12, 0x0a, 0x10, 0x45, 0x64, 0x69, 0x74, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x17, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x07, 0xfa, - 0x42, 0x04, 0x2a, 0x02, 0x28, 0x01, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x09, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x5f, 0x6a, 0x77, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, - 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x57, 0x54, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x08, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x4a, 0x77, 0x74, 0x22, - 0x1a, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x0a, 0x0b, 0x56, - 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x68, - 0x6f, 0x72, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x57, 0x54, 0x52, - 0x03, 0x6a, 0x77, 0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xec, 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, - 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, - 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x73, 0x70, 0x65, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x73, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, - 0x69, 0x6e, 0x41, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x32, 0xbf, 0x02, 0x0a, 0x10, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x48, 0x6f, 0x72, 0x73, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1a, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x72, 0x73, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, - 0x0a, 0x0c, 0x41, 0x6c, 0x6c, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, - 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x6c, 0x48, 0x6f, 0x72, 0x73, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, - 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x6c, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, - 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x12, 0x1d, - 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, - 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x48, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x44, 0x0a, 0x09, 0x45, 0x64, 0x69, 0x74, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, - 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x48, 0x6f, 0x72, 0x73, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x17, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x07, + 0xfa, 0x42, 0x04, 0x2a, 0x02, 0x28, 0x01, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x07, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, + 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x12, 0x33, 0x0a, 0x09, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x6a, 0x77, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4a, + 0x57, 0x54, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x08, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x4a, 0x77, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x57, 0x0a, 0x0b, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x04, 0x72, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x6a, + 0x77, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x4a, 0x57, 0x54, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x56, + 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xec, 0x01, 0x0a, 0x0f, + 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x41, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x2e, 0x73, 0x70, + 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x12, 0x1a, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x73, + 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x4c, + 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x73, 0x70, + 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x73, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x65, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xbf, 0x02, 0x0a, 0x10, 0x48, + 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x44, 0x0a, 0x09, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x73, + 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xee, 0x03, 0x0a, 0x0f, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, - 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x6c, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x6c, 0x6c, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x18, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x63, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x70, - 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x22, 0x2e, + 0x31, 0x2e, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x41, 0x6c, 0x6c, 0x48, 0x6f, 0x72, 0x73, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x6c, 0x6c, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, + 0x6c, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x48, 0x6f, 0x72, 0x73, 0x65, 0x12, 0x1d, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x45, 0x64, 0x69, 0x74, 0x48, 0x6f, + 0x72, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, + 0x69, 0x74, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x48, 0x6f, 0x72, + 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xee, 0x03, 0x0a, + 0x0f, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x4a, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x1b, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x6c, 0x52, 0x61, 0x63, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, + 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x6c, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, + 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x63, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x4d, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x12, + 0x1c, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x45, 0x64, 0x69, 0x74, - 0x52, 0x61, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x64, 0x69, 0x74, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, - 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x52, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, - 0x20, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x44, 0x0a, 0x0b, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x2e, - 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x75, 0x65, 0x63, 0x6b, 0x6f, - 0x6b, 0x65, 0x6e, 0x2f, 0x63, 0x68, 0x6f, 0x66, 0x75, 0x2d, 0x72, 0x61, 0x63, 0x65, 0x2d, 0x63, - 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x73, 0x70, 0x65, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, + 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x22, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x41, 0x0a, 0x08, 0x45, 0x64, 0x69, 0x74, 0x52, 0x61, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x73, 0x70, + 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x64, 0x69, 0x74, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x20, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x44, 0x0a, + 0x0b, 0x56, 0x6f, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x04, + 0x56, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x73, 0x70, 0x65, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x75, 0x65, 0x63, 0x6b, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x63, 0x68, 0x6f, 0x66, 0x75, + 0x2d, 0x72, 0x61, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, + 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2820,46 +2833,47 @@ var file_spec_v1_userdata_proto_depIdxs = []int32{ 5, // 28: spec.v1.RegisterRaceResultRequest.admin_jwt:type_name -> spec.v1.JWT 43, // 29: spec.v1.EditRaceRequest.start:type_name -> google.protobuf.Timestamp 5, // 30: spec.v1.EditRaceRequest.admin_jwt:type_name -> spec.v1.JWT - 5, // 31: spec.v1.DeleteRaceResultRequest.admin_jwt:type_name -> spec.v1.JWT - 5, // 32: spec.v1.VoteRequest.jwt:type_name -> spec.v1.JWT - 0, // 33: spec.v1.HorseDetail.Image.type:type_name -> spec.v1.HorseDetail.Image.ImageType - 22, // 34: spec.v1.HorseDetail.History.race:type_name -> spec.v1.Race - 23, // 35: spec.v1.HorseDetail.History.result:type_name -> spec.v1.RaceOrder - 23, // 36: spec.v1.RaceDetail.Member.order:type_name -> spec.v1.RaceOrder - 11, // 37: spec.v1.RaceDetail.Member.horse:type_name -> spec.v1.Horse - 4, // 38: spec.v1.UserDataService.UserData:input_type -> spec.v1.UserDataRequest - 7, // 39: spec.v1.UserDataService.CreateUser:input_type -> spec.v1.CreateUserRequest - 9, // 40: spec.v1.UserDataService.LoginAsAdmin:input_type -> spec.v1.LoginAsAdminRequest - 14, // 41: spec.v1.HorseDataService.HorseData:input_type -> spec.v1.HorseDataRequest - 16, // 42: spec.v1.HorseDataService.AllHorseData:input_type -> spec.v1.AllHorseDataRequest - 18, // 43: spec.v1.HorseDataService.RegisterHorse:input_type -> spec.v1.RegisterHorseRequest - 20, // 44: spec.v1.HorseDataService.EditHorse:input_type -> spec.v1.EditHorseRequest - 28, // 45: spec.v1.RaceDataService.AllRaceData:input_type -> spec.v1.AllRaceDataRequest - 26, // 46: spec.v1.RaceDataService.RaceData:input_type -> spec.v1.RaceDataRequest - 30, // 47: spec.v1.RaceDataService.RegisterRace:input_type -> spec.v1.RegisterRaceRequest - 32, // 48: spec.v1.RaceDataService.RegisterRaceResult:input_type -> spec.v1.RegisterRaceResultRequest - 34, // 49: spec.v1.RaceDataService.EditRace:input_type -> spec.v1.EditRaceRequest - 36, // 50: spec.v1.RaceDataService.DeleteRaceResult:input_type -> spec.v1.DeleteRaceResultRequest - 38, // 51: spec.v1.VoteService.Vote:input_type -> spec.v1.VoteRequest - 6, // 52: spec.v1.UserDataService.UserData:output_type -> spec.v1.UserDataResponse - 8, // 53: spec.v1.UserDataService.CreateUser:output_type -> spec.v1.CreateUserResponse - 10, // 54: spec.v1.UserDataService.LoginAsAdmin:output_type -> spec.v1.LoginAsAdminResponse - 15, // 55: spec.v1.HorseDataService.HorseData:output_type -> spec.v1.HorseDataResponse - 17, // 56: spec.v1.HorseDataService.AllHorseData:output_type -> spec.v1.AllHorseDataResponse - 19, // 57: spec.v1.HorseDataService.RegisterHorse:output_type -> spec.v1.RegisterHorseResponse - 21, // 58: spec.v1.HorseDataService.EditHorse:output_type -> spec.v1.EditHorseResponse - 29, // 59: spec.v1.RaceDataService.AllRaceData:output_type -> spec.v1.AllRaceDataResponse - 27, // 60: spec.v1.RaceDataService.RaceData:output_type -> spec.v1.RaceDataResponse - 31, // 61: spec.v1.RaceDataService.RegisterRace:output_type -> spec.v1.RegisterRaceResponse - 33, // 62: spec.v1.RaceDataService.RegisterRaceResult:output_type -> spec.v1.RegisterRaceResultResponse - 35, // 63: spec.v1.RaceDataService.EditRace:output_type -> spec.v1.EditRaceResponse - 37, // 64: spec.v1.RaceDataService.DeleteRaceResult:output_type -> spec.v1.DeleteRaceResultResponse - 39, // 65: spec.v1.VoteService.Vote:output_type -> spec.v1.VoteResponse - 52, // [52:66] is the sub-list for method output_type - 38, // [38:52] is the sub-list for method input_type - 38, // [38:38] is the sub-list for extension type_name - 38, // [38:38] is the sub-list for extension extendee - 0, // [0:38] is the sub-list for field type_name + 42, // 31: spec.v1.DeleteRaceResultRequest.members:type_name -> spec.v1.RaceDetail.Member + 5, // 32: spec.v1.DeleteRaceResultRequest.admin_jwt:type_name -> spec.v1.JWT + 5, // 33: spec.v1.VoteRequest.jwt:type_name -> spec.v1.JWT + 0, // 34: spec.v1.HorseDetail.Image.type:type_name -> spec.v1.HorseDetail.Image.ImageType + 22, // 35: spec.v1.HorseDetail.History.race:type_name -> spec.v1.Race + 23, // 36: spec.v1.HorseDetail.History.result:type_name -> spec.v1.RaceOrder + 23, // 37: spec.v1.RaceDetail.Member.order:type_name -> spec.v1.RaceOrder + 11, // 38: spec.v1.RaceDetail.Member.horse:type_name -> spec.v1.Horse + 4, // 39: spec.v1.UserDataService.UserData:input_type -> spec.v1.UserDataRequest + 7, // 40: spec.v1.UserDataService.CreateUser:input_type -> spec.v1.CreateUserRequest + 9, // 41: spec.v1.UserDataService.LoginAsAdmin:input_type -> spec.v1.LoginAsAdminRequest + 14, // 42: spec.v1.HorseDataService.HorseData:input_type -> spec.v1.HorseDataRequest + 16, // 43: spec.v1.HorseDataService.AllHorseData:input_type -> spec.v1.AllHorseDataRequest + 18, // 44: spec.v1.HorseDataService.RegisterHorse:input_type -> spec.v1.RegisterHorseRequest + 20, // 45: spec.v1.HorseDataService.EditHorse:input_type -> spec.v1.EditHorseRequest + 28, // 46: spec.v1.RaceDataService.AllRaceData:input_type -> spec.v1.AllRaceDataRequest + 26, // 47: spec.v1.RaceDataService.RaceData:input_type -> spec.v1.RaceDataRequest + 30, // 48: spec.v1.RaceDataService.RegisterRace:input_type -> spec.v1.RegisterRaceRequest + 32, // 49: spec.v1.RaceDataService.RegisterRaceResult:input_type -> spec.v1.RegisterRaceResultRequest + 34, // 50: spec.v1.RaceDataService.EditRace:input_type -> spec.v1.EditRaceRequest + 36, // 51: spec.v1.RaceDataService.DeleteRaceResult:input_type -> spec.v1.DeleteRaceResultRequest + 38, // 52: spec.v1.VoteService.Vote:input_type -> spec.v1.VoteRequest + 6, // 53: spec.v1.UserDataService.UserData:output_type -> spec.v1.UserDataResponse + 8, // 54: spec.v1.UserDataService.CreateUser:output_type -> spec.v1.CreateUserResponse + 10, // 55: spec.v1.UserDataService.LoginAsAdmin:output_type -> spec.v1.LoginAsAdminResponse + 15, // 56: spec.v1.HorseDataService.HorseData:output_type -> spec.v1.HorseDataResponse + 17, // 57: spec.v1.HorseDataService.AllHorseData:output_type -> spec.v1.AllHorseDataResponse + 19, // 58: spec.v1.HorseDataService.RegisterHorse:output_type -> spec.v1.RegisterHorseResponse + 21, // 59: spec.v1.HorseDataService.EditHorse:output_type -> spec.v1.EditHorseResponse + 29, // 60: spec.v1.RaceDataService.AllRaceData:output_type -> spec.v1.AllRaceDataResponse + 27, // 61: spec.v1.RaceDataService.RaceData:output_type -> spec.v1.RaceDataResponse + 31, // 62: spec.v1.RaceDataService.RegisterRace:output_type -> spec.v1.RegisterRaceResponse + 33, // 63: spec.v1.RaceDataService.RegisterRaceResult:output_type -> spec.v1.RegisterRaceResultResponse + 35, // 64: spec.v1.RaceDataService.EditRace:output_type -> spec.v1.EditRaceResponse + 37, // 65: spec.v1.RaceDataService.DeleteRaceResult:output_type -> spec.v1.DeleteRaceResultResponse + 39, // 66: spec.v1.VoteService.Vote:output_type -> spec.v1.VoteResponse + 53, // [53:67] is the sub-list for method output_type + 39, // [39:53] is the sub-list for method input_type + 39, // [39:39] is the sub-list for extension type_name + 39, // [39:39] is the sub-list for extension extendee + 0, // [0:39] is the sub-list for field type_name } func init() { file_spec_v1_userdata_proto_init() } diff --git a/go/_proto/spec/v1/userdata.pb.validate.go b/go/_proto/spec/v1/userdata.pb.validate.go index 1ceb67bc1..acd27664f 100644 --- a/go/_proto/spec/v1/userdata.pb.validate.go +++ b/go/_proto/spec/v1/userdata.pb.validate.go @@ -4714,6 +4714,40 @@ func (m *DeleteRaceResultRequest) validate(all bool) error { errors = append(errors, err) } + for idx, item := range m.GetMembers() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, DeleteRaceResultRequestValidationError{ + field: fmt.Sprintf("Members[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, DeleteRaceResultRequestValidationError{ + field: fmt.Sprintf("Members[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DeleteRaceResultRequestValidationError{ + field: fmt.Sprintf("Members[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + if m.GetAdminJwt() == nil { err := DeleteRaceResultRequestValidationError{ field: "AdminJwt", diff --git a/proto/spec/v1/userdata.proto b/proto/spec/v1/userdata.proto index aef89a121..a7a7be808 100644 --- a/proto/spec/v1/userdata.proto +++ b/proto/spec/v1/userdata.proto @@ -259,8 +259,10 @@ message EditRaceResponse {} message DeleteRaceResultRequest { // 対象を指定するため必須 uint32 id = 1 [(validate.rules).uint32.gte = 1]; + // 削除対象の馬を指定 + repeated RaceDetail.Member members = 2; // admin JWT - JWT admin_jwt = 2 [(validate.rules).message.required = true]; + JWT admin_jwt = 3 [(validate.rules).message.required = true]; } message DeleteRaceResultResponse {}