refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
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 Staff {
|
||||
@@ -9,22 +9,22 @@ service Staff {
|
||||
rpc Login(LoginRequest) returns (LoginReply) {}
|
||||
|
||||
// 获取工作人员列表
|
||||
rpc Fetch(FetchRequest) returns (StaffListReply) {}
|
||||
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (StaffListReply) {}
|
||||
|
||||
// 创建工作人员
|
||||
rpc Create(StaffItem) returns (StatusReply) {}
|
||||
rpc Create(StaffItem) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除工作人员
|
||||
rpc Delete(IdentRequest) returns (StatusReply) {}
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取个人信息
|
||||
rpc GetProfile(IdentRequest) returns (StaffItem) {}
|
||||
rpc GetProfile(blocks.IdentRequest) returns (StaffItem) {}
|
||||
|
||||
// 设置个人信息
|
||||
rpc SetProfile(StaffItem) returns (StatusReply) {}
|
||||
rpc SetProfile(StaffItem) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 设置账号密码
|
||||
rpc SetPassword(SetAccountRequest) returns (StatusReply) {}
|
||||
rpc SetPassword(SetAccountRequest) returns (blocks.IdentityStatusReply) {}
|
||||
}
|
||||
|
||||
message LoginRequest {
|
||||
@@ -64,7 +64,7 @@ message StaffItem {
|
||||
string phone = 8; // 手机号
|
||||
string email = 9; // 邮箱
|
||||
int32 status = 10; // 状态:默认为0,-1禁止,1为正常
|
||||
string avatar = 11; // 头像
|
||||
string avatar = 11; // 头像
|
||||
string created_at = 12 [json_name="created_at"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user