feat 命名规范
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb";
|
||||
option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rspb";
|
||||
import "rs_common.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
@@ -33,6 +33,12 @@ service Qgdzs {
|
||||
rpc GetRecord(GetRecordReq) returns (GetRecordResp) {option (google.api.http) = {post: "/qgdzs/auth/get_record" body: "*"};}
|
||||
// 获取具体的题目
|
||||
rpc GetQuestionInfo(GetQuestionInfoReq) returns (GetQuestionInfoResp) {option (google.api.http) = {post: "/qgdzs/open/get_question_info" body: "*"};}
|
||||
|
||||
// ---------- 学识分 ----------
|
||||
// 获取学识分获取记录
|
||||
rpc GetPointRecord(GetPointRecordReq) returns (GetPointRecordResp) {option (google.api.http) = {post: "/qgdzs/auth/point/record" body: "*"};}
|
||||
// 获取学识分
|
||||
rpc GetPoint(GetPointReq) returns (GetPointResp) {option (google.api.http) = {post: "/qgdzs/auth/point/info" body: "*"};}
|
||||
}
|
||||
|
||||
// ---------- GenerateQuestion ----------
|
||||
@@ -150,4 +156,28 @@ message GetQuestionInfoResp {
|
||||
string Category = 3 [json_name = "category"]; // 类目
|
||||
int32 Difficulty = 4 [json_name = "difficulty"]; // 难度
|
||||
string Explanation = 5 [json_name = "explanation"]; // 解析
|
||||
}
|
||||
|
||||
// ---------- GetPointRecord ----------
|
||||
message GetPointRecordReq {
|
||||
int64 USN = 1 [json_name = "usn"];
|
||||
int32 Page = 2 [json_name = "page"];
|
||||
int32 PageSize = 3 [json_name = "page_size"];
|
||||
}
|
||||
message GetPointRecordResp {
|
||||
int32 Count = 1 [json_name = "count"]; // 总数
|
||||
repeated GetPointRecordItem Records = 2 [json_name = "records"]; // 记录
|
||||
}
|
||||
message GetPointRecordItem {
|
||||
int32 Source = 1 [json_name = "source"]; // 来源
|
||||
int64 Point = 2 [json_name = "point"]; // 学识分
|
||||
int64 CreateTime = 3 [json_name = "create_time"]; // 创建时间
|
||||
}
|
||||
|
||||
// ---------- GetPoint ----------
|
||||
message GetPointReq {
|
||||
int64 USN = 1 [json_name = "usn"];
|
||||
}
|
||||
message GetPointResp {
|
||||
int64 Point = 1 [json_name = "point"]; // 学识分
|
||||
}
|
||||
Reference in New Issue
Block a user