refactor: localize protobuf definitions

This commit is contained in:
2026-08-09 20:14:57 +08:00
parent 9f6f318bbb
commit 5ea45a76fe
429 changed files with 54058 additions and 61623 deletions

View File

@@ -2,9 +2,9 @@
package server
import (
"context"
"bsm/full/module/ec/mall/internal/logic/notice"
pb "bsm/full/module/ec/mall/pb"
"context"
)
type NoticeServer struct {
@@ -16,21 +16,21 @@ func NewNoticeServer() *NoticeServer {
}
// 公告列表
func (s *NoticeServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.NoticeListReply, error) {
func (s *NoticeServer) Fetch(ctx context.Context, in *pb.MallFetchRequest) (*pb.NoticeListReply, error) {
return notice.Fetch(ctx, in)
}
// 新建公告
func (s *NoticeServer) Create(ctx context.Context, in *pb.NoticeItem) (*pb.StatusReply, error) {
func (s *NoticeServer) Create(ctx context.Context, in *pb.NoticeItem) (*pb.IdentityStatusReply, error) {
return notice.Create(ctx, in)
}
// 修改公告
func (s *NoticeServer) Modify(ctx context.Context, in *pb.NoticeItem) (*pb.StatusReply, error) {
func (s *NoticeServer) Modify(ctx context.Context, in *pb.NoticeItem) (*pb.IdentityStatusReply, error) {
return notice.Modify(ctx, in)
}
// 删除公告
func (s *NoticeServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
func (s *NoticeServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
return notice.Delete(ctx, in)
}