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/ec/address/internal/logic/library"
pb "bsm/full/module/ec/address/pb"
)
type LibraryServer struct {
pb.UnimplementedLibraryServer
}
func NewLibraryServer() *LibraryServer {
return &LibraryServer{}
}
// 新增地址
func (s *LibraryServer) Create(ctx context.Context, in *pb.AddressCreateRequest) (*pb.StatusReply, error) {
return library.Create(ctx, in)
}
// 修改地址
func (s *LibraryServer) Modify(ctx context.Context, in *pb.AddressItem) (*pb.StatusReply, error) {
return library.Modify(ctx, in)
}
// 获取一条地址
func (s *LibraryServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.AddressItem, error) {
return library.Get(ctx, in)
}
// 获取地址列表
func (s *LibraryServer) Fetch(ctx context.Context, in *pb.IdentRequest) (*pb.AddressListReply, error) {
return library.Fetch(ctx, in)
}
// 删除一个地址
func (s *LibraryServer) Delete(ctx context.Context, in *pb.AddressDeleteRequest) (*pb.StatusReply, error) {
return library.Delete(ctx, in)
}