wfz 3 жил өмнө
parent
commit
23684e6168

+ 1 - 1
api/user/user.proto

@@ -517,7 +517,7 @@ service User {
       body:"*"
       body:"*"
     };
     };
   };
   };
-  // 获取用户是否领取回归奖励
+  // 获取用户是否领取回归奖励
   rpc IsCanGetReturnReword (google.protobuf.Empty) returns (IsCanGetReturnRewordReply){
   rpc IsCanGetReturnReword (google.protobuf.Empty) returns (IsCanGetReturnRewordReply){
     option (google.api.http) = {
     option (google.api.http) = {
       post: "/api/user/return/reword/status",
       post: "/api/user/return/reword/status",

+ 2 - 0
errors/user.go

@@ -13,6 +13,8 @@ var (
 	ErrorUpdateAvatarUrlNumNotEnough = codes.Error(30008, "今日更新头像次数已达上限")
 	ErrorUpdateAvatarUrlNumNotEnough = codes.Error(30008, "今日更新头像次数已达上限")
 	ErrorUpdateSignatureNumNotEnough = codes.Error(30009, "今日更新签名次数已达上限")
 	ErrorUpdateSignatureNumNotEnough = codes.Error(30009, "今日更新签名次数已达上限")
 	ErrorUpdatePicturesNumNotEnough  = codes.Error(30010, "今日更新相册次数已达上限")
 	ErrorUpdatePicturesNumNotEnough  = codes.Error(30010, "今日更新相册次数已达上限")
+	ErrorActivityIsFinish            = codes.Error(30011, "活动已经结束")
+	ErrorIsGetReword                 = codes.Error(30012, "已经领取了活动奖励")
 )
 )
 
 
 func GetCodeNum(err error) int {
 func GetCodeNum(err error) int {