refactor: reorganize modules and add Linux build tooling
This commit is contained in:
41
module/base/cms/internal/server/site_server.go
Normal file
41
module/base/cms/internal/server/site_server.go
Normal file
@@ -0,0 +1,41 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cms/internal/logic/site"
|
||||
pb "bsm/full/module/base/cms/pb"
|
||||
)
|
||||
|
||||
type SiteServer struct {
|
||||
pb.UnimplementedSiteServer
|
||||
}
|
||||
|
||||
func NewSiteServer() *SiteServer {
|
||||
return &SiteServer{}
|
||||
}
|
||||
|
||||
// 站点列表
|
||||
func (s *SiteServer) Fetch(ctx context.Context, in *pb.Empty) (*pb.SiteListReply, error) {
|
||||
return site.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 站点详情
|
||||
func (s *SiteServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.SiteItem, error) {
|
||||
return site.Get(ctx, in)
|
||||
}
|
||||
|
||||
// 添加站点
|
||||
func (s *SiteServer) Create(ctx context.Context, in *pb.SiteItem) (*pb.StatusReply, error) {
|
||||
return site.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 修改站点
|
||||
func (s *SiteServer) Modify(ctx context.Context, in *pb.SiteItem) (*pb.StatusReply, error) {
|
||||
return site.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 删除站点
|
||||
func (s *SiteServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return site.Delete(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user