File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,6 +282,18 @@ service CampusService {
282282 };
283283 }
284284
285+ //修改已保存体测成绩
286+ rpc ModifyFitnessScore (ModifyFitnessScoreRequest ) returns (FitnessScoreResponse ) {
287+ option (google.api.http ) = {
288+ put : "/staff/v1/fitness/score"
289+ body : "*"
290+ additional_bindings {
291+ put : "/fitness/score"
292+ body : "*"
293+ }
294+ };
295+ }
296+
285297 //查询已保存体测成绩列表
286298 rpc ListFitnessScores (google.protobuf.Empty ) returns (ListFitnessScoresResponse ) {
287299 option (google.api.http ) = {
@@ -1046,17 +1058,6 @@ message FitnessScoreResponse {
10461058
10471059// DeleteFitnessScoreRequest 删除体测成绩请求
10481060message DeleteFitnessScoreRequest {
1049- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema ) = {
1050- json_schema : {
1051- title : "DeleteFitnessScoreRequest"
1052- description : "删除体测成绩请求体"
1053- required : [
1054- "staffId" ,
1055- "schoolYear",
1056- "semester"
1057- ]
1058- }
1059- };
10601061 string staffId = 1 ;
10611062 string schoolYear = 2 ;
10621063 string semester = 3 ;
@@ -1094,4 +1095,25 @@ message ListFitnessScoresResponse {
10941095 int32 error = 1 ;
10951096 string msg = 2 ;
10961097 repeated FitnessScore data = 3 ;
1098+ }
1099+
1100+ // ModifyFitnessScoreRequest 修改体测成绩请求
1101+ message ModifyFitnessScoreRequest {
1102+ string staffId = 1 ;
1103+ string schoolYear = 2 ;
1104+ string semester = 3 ;
1105+ string gender = 4 ;
1106+ int32 grade = 5 ;
1107+ float height = 6 ;
1108+ float weight = 7 ;
1109+ float bmi = 8 ;
1110+ float run50m = 9 ;
1111+ float standingLongJump = 10 ;
1112+ float sitAndReach = 11 ;
1113+ float run800m = 12 ;
1114+ float run1000m = 13 ;
1115+ int32 sitUps = 14 ;
1116+ int32 pullUps = 15 ;
1117+ int32 lungCapacity = 16 ;
1118+ float totalScore = 17 ;
10971119}
You can’t perform that action at this time.
0 commit comments