Skip to content

Commit

Permalink
refactor: auth合入sts,comment移入platform
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqihao.foliet committed Jul 27, 2023
1 parent ab7e45e commit af76ac5
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 48 deletions.
46 changes: 0 additions & 46 deletions platform/authentication/authentication.proto

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package meowchat.comment;

option go_package = "meowchat/comment";

import "meowchat/comment/common.proto";
import "platform/comment/common.proto";

// 创建评论

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion platform/sts/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ enum Scene {
Profile = 1;
Comment = 2;
Forum = 3;
}
}
33 changes: 33 additions & 0 deletions platform/sts/sts.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,44 @@ message PhotoCheckResp {
bool pass = 1;
}

message SignInReq {
string authType = 1;
string authId = 2;
optional string password = 3;
optional string verifyCode = 4;
}

message SignInResp {
string userId = 1;
string openId = 2;
string unionId = 3;
string appId = 4;
}

message SetPasswordReq {
string userId = 1;
string password = 2;
}

message SetPasswordResp {
}

message SendVerifyCodeReq {
string authType = 1;
string authId = 2; // 邮箱号或手机号
}

message SendVerifyCodeResp {
}

service StsService {
rpc genCosSts(GenCosStsReq) returns (GenCosStsResp);
rpc genSignedUrl(GenSignedUrlReq) returns (GenSignedUrlResp);
rpc deleteObject(DeleteObjectReq) returns (DeleteObjectResp);
rpc textCheck(TextCheckReq) returns (TextCheckResp);
rpc photoCheck(PhotoCheckReq) returns (PhotoCheckResp);
rpc signIn(SignInReq) returns (SignInResp);
rpc setPassword(SetPasswordReq) returns (SetPasswordResp);
rpc sendVerifyCode(SendVerifyCodeReq) returns (SendVerifyCodeResp);
}

0 comments on commit af76ac5

Please sign in to comment.