refactor: reorganize modules and add Linux build tooling
This commit is contained in:
36
module/ec/mall/internal/server/notice_server.go
Normal file
36
module/ec/mall/internal/server/notice_server.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/ec/mall/internal/logic/notice"
|
||||
pb "bsm/full/module/ec/mall/pb"
|
||||
)
|
||||
|
||||
type NoticeServer struct {
|
||||
pb.UnimplementedNoticeServer
|
||||
}
|
||||
|
||||
func NewNoticeServer() *NoticeServer {
|
||||
return &NoticeServer{}
|
||||
}
|
||||
|
||||
// 公告列表
|
||||
func (s *NoticeServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.NoticeListReply, error) {
|
||||
return notice.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 新建公告
|
||||
func (s *NoticeServer) Create(ctx context.Context, in *pb.NoticeItem) (*pb.StatusReply, error) {
|
||||
return notice.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 修改公告
|
||||
func (s *NoticeServer) Modify(ctx context.Context, in *pb.NoticeItem) (*pb.StatusReply, error) {
|
||||
return notice.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 删除公告
|
||||
func (s *NoticeServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return notice.Delete(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user