增加命名空间前缀,解决冲突

This commit is contained in:
sky
2025-09-07 20:42:11 +08:00
parent 53c602237b
commit 8ad7b888dc
10 changed files with 28 additions and 28 deletions

View 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);
}

View 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;
}

View 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;
}