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

投票スキーマ書いた #283

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion client/_proto/spec/v1/userdata_connectweb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.3.0 with parameter "target=js+dts"
// @generated by protoc-gen-connect-web v0.3.1 with parameter "target=js+dts"
// @generated from file spec/v1/userdata.proto (package spec.v1, syntax proto3)
/* eslint-disable */
/* @ts-nocheck */
Expand Down
2 changes: 1 addition & 1 deletion client/_proto/spec/v1/userdata_connectweb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-web v0.3.0 with parameter "target=js+dts"
// @generated by protoc-gen-connect-web v0.3.1 with parameter "target=js+dts"
// @generated from file spec/v1/userdata.proto (package spec.v1, syntax proto3)
/* eslint-disable */
/* @ts-nocheck */
Expand Down
5 changes: 5 additions & 0 deletions client/_proto/spec/v1/userdata_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,11 @@ export declare class VoteRequest extends Message<VoteRequest> {
*/
jwt?: JWT;

/**
* @generated from field: string user_id = 4;
*/
userId: string;

constructor(data?: PartialMessage<VoteRequest>);

static readonly runtime: typeof proto3;
Expand Down
1 change: 1 addition & 0 deletions client/_proto/spec/v1/userdata_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ 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: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);

Expand Down
1 change: 1 addition & 0 deletions docs/protobuf.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ start - n, vote_end: start - m
| race | [uint32](#uint32) | | 投票するレースのID |
| horse | [uint32](#uint32) | | 投票する馬の馬番 |
| jwt | [JWT](#spec-v1-JWT) | | |
| user_id | [string](#string) | | |



Expand Down
156 changes: 83 additions & 73 deletions go/_proto/spec/v1/userdata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go/_proto/spec/v1/userdata.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/spec/v1/userdata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -264,5 +264,6 @@ message VoteRequest {
// 投票する馬の馬番
uint32 horse = 2;
JWT jwt = 3;
string user_id = 4;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ User をやり取りすることで良くないですか?

}
message VoteResponse {}