refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/ec/mall/internal/logic/store"
|
||||
pb "bsm/full/module/ec/mall/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type StoreServer struct {
|
||||
@@ -16,12 +16,12 @@ func NewStoreServer() *StoreServer {
|
||||
}
|
||||
|
||||
// 申请加入店铺
|
||||
func (s *StoreServer) ApplyJoin(ctx context.Context, in *pb.ApplyJoinRequest) (*pb.StatusReply, error) {
|
||||
func (s *StoreServer) ApplyJoin(ctx context.Context, in *pb.ApplyJoinRequest) (*pb.IdentityStatusReply, error) {
|
||||
return store.ApplyJoin(ctx, in)
|
||||
}
|
||||
|
||||
// 店铺许可授权
|
||||
func (s *StoreServer) Licensing(ctx context.Context, in *pb.LicensingRequest) (*pb.StatusReply, error) {
|
||||
func (s *StoreServer) Licensing(ctx context.Context, in *pb.LicensingRequest) (*pb.IdentityStatusReply, error) {
|
||||
return store.Licensing(ctx, in)
|
||||
}
|
||||
|
||||
@@ -31,17 +31,17 @@ func (s *StoreServer) GetSetting(ctx context.Context, in *pb.IdentRequest) (*pb.
|
||||
}
|
||||
|
||||
// 设置店铺基础配置
|
||||
func (s *StoreServer) SetSetting(ctx context.Context, in *pb.StoreBasic) (*pb.StatusReply, error) {
|
||||
func (s *StoreServer) SetSetting(ctx context.Context, in *pb.StoreBasic) (*pb.IdentityStatusReply, error) {
|
||||
return store.SetSetting(ctx, in)
|
||||
}
|
||||
|
||||
// 设置支付方式配置
|
||||
func (s *StoreServer) SetPayment(ctx context.Context, in *pb.SettingRequest) (*pb.StatusReply, error) {
|
||||
func (s *StoreServer) SetPayment(ctx context.Context, in *pb.SettingRequest) (*pb.IdentityStatusReply, error) {
|
||||
return store.SetPayment(ctx, in)
|
||||
}
|
||||
|
||||
// 设置邮件服务器配置
|
||||
func (s *StoreServer) SetEmail(ctx context.Context, in *pb.SettingRequest) (*pb.StatusReply, error) {
|
||||
func (s *StoreServer) SetEmail(ctx context.Context, in *pb.SettingRequest) (*pb.IdentityStatusReply, error) {
|
||||
return store.SetEmail(ctx, in)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user