50 lines
1.4 KiB
Go
50 lines
1.4 KiB
Go
|
// Code generated by goctl. DO NOT EDIT.
|
||
|
// goctl 1.7.6
|
||
|
// Source: admin_service.proto
|
||
|
|
||
|
package admin_service_client
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/admin_service/admin_service"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/zrpc"
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
AppInfo = admin_service.AppInfo
|
||
|
GetAppListRequest = admin_service.GetAppListRequest
|
||
|
GetAppListResponse = admin_service.GetAppListResponse
|
||
|
Request = admin_service.Request
|
||
|
Response = admin_service.Response
|
||
|
|
||
|
AdminService interface {
|
||
|
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
||
|
// 获取app列表
|
||
|
GetAppList(ctx context.Context, in *GetAppListRequest, opts ...grpc.CallOption) (*GetAppListResponse, error)
|
||
|
}
|
||
|
|
||
|
defaultAdminService struct {
|
||
|
cli zrpc.Client
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func NewAdminService(cli zrpc.Client) AdminService {
|
||
|
return &defaultAdminService{
|
||
|
cli: cli,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (m *defaultAdminService) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
||
|
client := admin_service.NewAdminServiceClient(m.cli.Conn())
|
||
|
return client.Ping(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
// 获取app列表
|
||
|
func (m *defaultAdminService) GetAppList(ctx context.Context, in *GetAppListRequest, opts ...grpc.CallOption) (*GetAppListResponse, error) {
|
||
|
client := admin_service.NewAdminServiceClient(m.cli.Conn())
|
||
|
return client.GetAppList(ctx, in, opts...)
|
||
|
}
|