wfz há 3 anos atrás
pai
commit
23684e6168
2 ficheiros alterados com 3 adições e 1 exclusões
  1. 1 1
      api/user/user.proto
  2. 2 0
      errors/user.go

+ 1 - 1
api/user/user.proto

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

+ 2 - 0
errors/user.go

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