refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/ec/mall/internal/logic/ads"
|
||||
pb "bsm/full/module/ec/mall/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type AdsServer struct {
|
||||
@@ -21,21 +21,21 @@ func (s *AdsServer) ByPos(ctx context.Context, in *pb.ByPosRequest) (*pb.AdsList
|
||||
}
|
||||
|
||||
// 广告列表
|
||||
func (s *AdsServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.AdsListReply, error) {
|
||||
func (s *AdsServer) Fetch(ctx context.Context, in *pb.MallFetchRequest) (*pb.AdsListReply, error) {
|
||||
return ads.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 新建广告
|
||||
func (s *AdsServer) Create(ctx context.Context, in *pb.AdsItem) (*pb.StatusReply, error) {
|
||||
func (s *AdsServer) Create(ctx context.Context, in *pb.AdsItem) (*pb.IdentityStatusReply, error) {
|
||||
return ads.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 修改广告
|
||||
func (s *AdsServer) Modify(ctx context.Context, in *pb.AdsItem) (*pb.StatusReply, error) {
|
||||
func (s *AdsServer) Modify(ctx context.Context, in *pb.AdsItem) (*pb.IdentityStatusReply, error) {
|
||||
return ads.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 删除广告
|
||||
func (s *AdsServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
func (s *AdsServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
|
||||
return ads.Delete(ctx, in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user