Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add vote_end field in vote service schema #306

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions client/_proto/spec/v1/userdata_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,11 @@ export declare class VoteRequest extends Message<VoteRequest> {
*/
jwt?: JWT;

/**
* @generated from field: spec.v1.VoteRequest.VoteTime vote_time = 4;
*/
voteTime?: VoteRequest_VoteTime;

constructor(data?: PartialMessage<VoteRequest>);

static readonly runtime: typeof proto3;
Expand All @@ -1329,6 +1334,35 @@ export declare class VoteRequest extends Message<VoteRequest> {
static equals(a: VoteRequest | PlainMessage<VoteRequest> | undefined, b: VoteRequest | PlainMessage<VoteRequest> | undefined): boolean;
}

/**
* @generated from message spec.v1.VoteRequest.VoteTime
*/
export declare class VoteRequest_VoteTime extends Message<VoteRequest_VoteTime> {
/**
* @generated from field: google.protobuf.Timestamp start = 1;
*/
start?: Timestamp;

/**
* @generated from field: google.protobuf.Timestamp end = 2;
*/
end?: Timestamp;

constructor(data?: PartialMessage<VoteRequest_VoteTime>);

static readonly runtime: typeof proto3;
static readonly typeName = "spec.v1.VoteRequest.VoteTime";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VoteRequest_VoteTime;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VoteRequest_VoteTime;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VoteRequest_VoteTime;

static equals(a: VoteRequest_VoteTime | PlainMessage<VoteRequest_VoteTime> | undefined, b: VoteRequest_VoteTime | PlainMessage<VoteRequest_VoteTime> | undefined): boolean;
}

/**
* @generated from message spec.v1.VoteResponse
*/
Expand Down
13 changes: 13 additions & 0 deletions client/_proto/spec/v1/userdata_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,22 @@ export const VoteRequest = proto3.makeMessageType(
{ no: 1, name: "race", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
{ no: 2, name: "horse", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
{ no: 3, name: "jwt", kind: "message", T: JWT },
{ no: 4, name: "vote_time", kind: "message", T: VoteRequest_VoteTime },
],
);

/**
* @generated from message spec.v1.VoteRequest.VoteTime
*/
export const VoteRequest_VoteTime = proto3.makeMessageType(
"spec.v1.VoteRequest.VoteTime",
() => [
{ no: 1, name: "start", kind: "message", T: Timestamp },
{ no: 2, name: "end", kind: "message", T: Timestamp },
],
{localName: "VoteRequest_VoteTime"},
);

/**
* @generated from message spec.v1.VoteResponse
*/
Expand Down
18 changes: 18 additions & 0 deletions docs/protobuf.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- [UserDataResponse](#spec-v1-UserDataResponse)
- [Users](#spec-v1-Users)
- [VoteRequest](#spec-v1-VoteRequest)
- [VoteRequest.VoteTime](#spec-v1-VoteRequest-VoteTime)
- [VoteResponse](#spec-v1-VoteResponse)

- [HorseDetail.Image.ImageType](#spec-v1-HorseDetail-Image-ImageType)
Expand Down Expand Up @@ -679,6 +680,23 @@ start - n, vote_end: start - m
| race | [uint32](#uint32) | | 投票するレースのID |
| horse | [uint32](#uint32) | | 投票する馬の馬番 |
| jwt | [JWT](#spec-v1-JWT) | | |
| vote_time | [VoteRequest.VoteTime](#spec-v1-VoteRequest-VoteTime) | | |






<a name="spec-v1-VoteRequest-VoteTime"></a>

### VoteRequest.VoteTime



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
| end | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |



Expand Down
Loading