refactor: reorganize modules and add Linux build tooling
This commit is contained in:
41
module/ec/address/internal/server/library_server.go
Normal file
41
module/ec/address/internal/server/library_server.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user