增加命名空间前缀,解决冲突
This commit is contained in:
13
src/corestack/admin/v1/service.proto
Normal file
13
src/corestack/admin/v1/service.proto
Normal file
@@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
package corestack.admin.v1;
|
||||
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1";
|
||||
|
||||
import "corestack/admin/v1/sms.proto";
|
||||
import "corestack/admin/v1/user.proto";
|
||||
|
||||
service AdminService {
|
||||
rpc ListSMSSign(ListSMSSignRequest) returns (ListSMSSignResponse);
|
||||
rpc SendSMS(SendSMSRequest) returns (SendSMSResponse);
|
||||
|
||||
rpc GetUserInfo(GetUserInfoRequest) returns (GetUserInfoResponse);
|
||||
}
|
||||
36
src/corestack/admin/v1/sms.proto
Normal file
36
src/corestack/admin/v1/sms.proto
Normal file
@@ -0,0 +1,36 @@
|
||||
syntax = "proto3";
|
||||
package corestack.admin.v1;
|
||||
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1";
|
||||
|
||||
import "corestack/enums/v1/sms.proto";
|
||||
|
||||
message SendSMSRequest {
|
||||
string phone = 1;
|
||||
string sign_name = 2;
|
||||
string template_code = 3;
|
||||
map<string, string> template_params = 4;
|
||||
}
|
||||
|
||||
message SendSMSResponse {}
|
||||
|
||||
message ListSMSSignRequest { int32 offset = 1; }
|
||||
|
||||
message SMSSignReason {
|
||||
string content = 1;
|
||||
string sub_content = 2;
|
||||
int32 create_at = 3;
|
||||
}
|
||||
|
||||
message SMSSign {
|
||||
string id = 1; // 签名ID
|
||||
string name = 2; // 签名名称
|
||||
enums.v1.SMSSignStatus status = 3; // 签名状态
|
||||
string type = 4; // 签名类型
|
||||
SMSSignReason reasons = 5; // 签名拒绝原因
|
||||
int32 created_at = 6; // 创建时间
|
||||
}
|
||||
|
||||
message ListSMSSignResponse {
|
||||
repeated SMSSign list = 1;
|
||||
int32 count = 2;
|
||||
}
|
||||
17
src/corestack/admin/v1/user.proto
Normal file
17
src/corestack/admin/v1/user.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
package corestack.admin.v1;
|
||||
option go_package = "git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1";
|
||||
|
||||
message GetUserInfoRequest {
|
||||
string user_id = 1;
|
||||
string invitation_code = 2;
|
||||
}
|
||||
message GetUserInfoResponse {
|
||||
string id = 1;
|
||||
string avatar = 2;
|
||||
string invitation_code = 3;
|
||||
string description = 4;
|
||||
string name = 5;
|
||||
string phone = 6;
|
||||
string email = 7;
|
||||
}
|
||||
Reference in New Issue
Block a user