refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
syntax = "proto3";
|
||||
package mall;
|
||||
option go_package = ".;mall";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/ec/mall/pb;mall";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// Store(店铺)微服务-店铺基础服务
|
||||
service Store {
|
||||
|
||||
// 申请加入店铺
|
||||
rpc ApplyJoin(ApplyJoinRequest) returns (StatusReply) {};
|
||||
rpc ApplyJoin(ApplyJoinRequest) returns (blocks.IdentityStatusReply) {};
|
||||
|
||||
// 店铺许可授权
|
||||
rpc Licensing(LicensingRequest) returns (StatusReply) {}
|
||||
rpc Licensing(LicensingRequest) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取店铺基础配置
|
||||
rpc GetSetting(IdentRequest) returns(StoreBasic){};
|
||||
rpc GetSetting(blocks.IdentRequest) returns(StoreBasic){};
|
||||
|
||||
// 设置店铺基础配置
|
||||
rpc SetSetting(StoreBasic) returns(StatusReply){};
|
||||
rpc SetSetting(StoreBasic) returns(blocks.IdentityStatusReply){};
|
||||
|
||||
// 设置支付方式配置
|
||||
rpc SetPayment(SettingRequest) returns(StatusReply){}
|
||||
rpc SetPayment(SettingRequest) returns(blocks.IdentityStatusReply){}
|
||||
|
||||
// 设置邮件服务器配置
|
||||
rpc SetEmail(SettingRequest) returns(StatusReply){}
|
||||
rpc SetEmail(SettingRequest) returns(blocks.IdentityStatusReply){}
|
||||
|
||||
// 获取支付方式配置
|
||||
rpc GetPayment(IdentRequest) returns(ConfigsReply){}
|
||||
rpc GetPayment(blocks.IdentRequest) returns(ConfigsReply){}
|
||||
|
||||
// 获取邮件服务器配置
|
||||
rpc GetEmail(IdentRequest) returns(ConfigsReply){}
|
||||
rpc GetEmail(blocks.IdentRequest) returns(ConfigsReply){}
|
||||
|
||||
// 获取小程序推荐码
|
||||
rpc MiniCode(MiniCodeRequest) returns(MiniCodeReply) {};
|
||||
@@ -49,7 +49,7 @@ message ConfigsReply{
|
||||
|
||||
|
||||
message LicensingRequest {
|
||||
string license_type = 1 [json_name="license_type"]; // 授权类型
|
||||
string license_type = 1 [json_name="license_type"]; // 授权类型
|
||||
string license = 2; // 许可码
|
||||
string domain = 3;
|
||||
string host = 4;
|
||||
|
||||
Reference in New Issue
Block a user