36 lines
1008 B
Go
36 lines
1008 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.7.6
|
|
// Source: admin_service.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/admin_service"
|
|
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/internal/logic"
|
|
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/internal/svc"
|
|
)
|
|
|
|
type AdminServiceServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
admin_service.UnimplementedAdminServiceServer
|
|
}
|
|
|
|
func NewAdminServiceServer(svcCtx *svc.ServiceContext) *AdminServiceServer {
|
|
return &AdminServiceServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *AdminServiceServer) Ping(ctx context.Context, in *admin_service.Request) (*admin_service.Response, error) {
|
|
l := logic.NewPingLogic(ctx, s.svcCtx)
|
|
return l.Ping(in)
|
|
}
|
|
|
|
// 获取app列表
|
|
func (s *AdminServiceServer) GetAppList(ctx context.Context, in *admin_service.GetAppListRequest) (*admin_service.GetAppListResponse, error) {
|
|
l := logic.NewGetAppListLogic(ctx, s.svcCtx)
|
|
return l.GetAppList(in)
|
|
}
|