youtu_grpc/app/admin_service/internal/server/admin_service_server.go
xiabin b0d719312b
Some checks are pending
/ build-services (app/admin_service/Dockerfile, admin, admin) (push) Waiting to run
/ build-services (app/auth_service/Dockerfile, auth, auth) (push) Waiting to run
/ build-services (app/ecpm_service/Dockerfile, ecpm, ecpm) (push) Waiting to run
/ build-services (app/ranking_service/Dockerfile, ranking, ranking) (push) Waiting to run
/ build-services (app/user_service/Dockerfile, user, user) (push) Waiting to run
/ start-services (push) Blocked by required conditions
通过配置合并简化配置文件
2025-03-05 09:18:45 +08:00

60 lines
1.9 KiB
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)
}
// UpdateOne 修改app数据
func (s *AdminServiceServer) UpdateOne(ctx context.Context, in *admin_service.AppInfo) (*admin_service.CommonResponse, error) {
l := logic.NewUpdateOneLogic(ctx, s.svcCtx)
return l.UpdateOne(in)
}
// DeleteApp 删除app
func (s *AdminServiceServer) DeleteApp(ctx context.Context, in *admin_service.DeleteAppRequest) (*admin_service.CommonResponse, error) {
l := logic.NewDeleteAppLogic(ctx, s.svcCtx)
return l.DeleteApp(in)
}
// AddApp 添加app
func (s *AdminServiceServer) AddApp(ctx context.Context, in *admin_service.AddAppRequest) (*admin_service.AddAppResponse, error) {
l := logic.NewAddAppLogic(ctx, s.svcCtx)
return l.AddApp(in)
}
// 覆盖app数据
func (s *AdminServiceServer) CoverApp(ctx context.Context, in *admin_service.CoverAppRequest) (*admin_service.CoverAppResponse, error) {
l := logic.NewCoverAppLogic(ctx, s.svcCtx)
return l.CoverApp(in)
}