refactor: reorganize modules and add Linux build tooling
This commit is contained in:
31
module/base/initial/internal/server/check_server.go
Normal file
31
module/base/initial/internal/server/check_server.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/initial/internal/logic/check"
|
||||
pb "bsm/full/module/base/initial/pb"
|
||||
)
|
||||
|
||||
type CheckServer struct {
|
||||
pb.UnimplementedCheckServer
|
||||
}
|
||||
|
||||
func NewCheckServer() *CheckServer {
|
||||
return &CheckServer{}
|
||||
}
|
||||
|
||||
// HELLO
|
||||
func (s *CheckServer) Hello(ctx context.Context, in *pb.Crc) (*pb.StatusReply, error) {
|
||||
return check.Hello(ctx, in)
|
||||
}
|
||||
|
||||
// 获取应用的相关配置信息
|
||||
func (s *CheckServer) Config(ctx context.Context, in *pb.ConfigRequest) (*pb.ConfigReply, error) {
|
||||
return check.Config(ctx, in)
|
||||
}
|
||||
|
||||
// 检查更新
|
||||
func (s *CheckServer) Updates(ctx context.Context, in *pb.CheckForUpdatesRequest) (*pb.CheckForUpdatesReply, error) {
|
||||
return check.Updates(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user