feat: import services and standardize Go 1.26.5
This commit is contained in:
30
apps/base/initial/internal/server/data_server.go
Normal file
30
apps/base/initial/internal/server/data_server.go
Normal file
@@ -0,0 +1,30 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-apps/initial/internal/logic/data"
|
||||
pb "git.apinb.com/bsm-apps/initial/pb"
|
||||
)
|
||||
|
||||
type DataServer struct {
|
||||
pb.UnimplementedDataServer
|
||||
}
|
||||
|
||||
func NewDataServer() *DataServer {
|
||||
return &DataServer{}
|
||||
}
|
||||
|
||||
func (s *DataServer) Country(ctx context.Context, in *pb.Empty) (*pb.CountryReply, error) {
|
||||
return data.Country(ctx, in)
|
||||
}
|
||||
|
||||
// 系统区域数据,默认级别:市
|
||||
func (s *DataServer) Areas(ctx context.Context, in *pb.AreasRequest) (*pb.AreasReply, error) {
|
||||
return data.Areas(ctx, in)
|
||||
}
|
||||
|
||||
// 系统数据
|
||||
func (s *DataServer) Datas(ctx context.Context, in *pb.Empty) (*pb.DatasReply, error) {
|
||||
return data.Datas(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user