refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View 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)
}