Files
lone-services/admin/internal/server/adminserver.go
T
gjs 44c4aed22e
CI / changes (push) Successful in 2s
CI / docker-bff (push) Successful in 1s
CI / docker-product (push) Has been skipped
service apis edit, info, items, status, names
2026-08-11 10:35:29 +08:00

95 lines
2.9 KiB
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.10.2
// Source: admin.proto
package server
import (
"context"
"admin/admin"
"admin/internal/logic"
"admin/internal/svc"
)
type AdminServer struct {
svcCtx *svc.ServiceContext
admin.UnimplementedAdminServer
}
func NewAdminServer(svcCtx *svc.ServiceContext) *AdminServer {
return &AdminServer{
svcCtx: svcCtx,
}
}
func (s *AdminServer) AdminEdit(ctx context.Context, in *admin.AdminEditRequest) (*admin.Response, error) {
l := logic.NewAdminEditLogic(ctx, s.svcCtx)
return l.AdminEdit(in)
}
func (s *AdminServer) AdminStatus(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
l := logic.NewAdminStatusLogic(ctx, s.svcCtx)
return l.AdminStatus(in)
}
func (s *AdminServer) Password(ctx context.Context, in *admin.PasswordRequest) (*admin.Response, error) {
l := logic.NewPasswordLogic(ctx, s.svcCtx)
return l.Password(in)
}
func (s *AdminServer) OwnPassword(ctx context.Context, in *admin.OwnPasswordRequest) (*admin.Response, error) {
l := logic.NewOwnPasswordLogic(ctx, s.svcCtx)
return l.OwnPassword(in)
}
func (s *AdminServer) AdminInfo(ctx context.Context, in *admin.AdminInfoRequest) (*admin.Response, error) {
l := logic.NewAdminInfoLogic(ctx, s.svcCtx)
return l.AdminInfo(in)
}
func (s *AdminServer) AdminItems(ctx context.Context, in *admin.AdminItemsRequest) (*admin.Response, error) {
l := logic.NewAdminItemsLogic(ctx, s.svcCtx)
return l.AdminItems(in)
}
func (s *AdminServer) AdminLogin(ctx context.Context, in *admin.AdminLoginRequest) (*admin.Response, error) {
l := logic.NewAdminLoginLogic(ctx, s.svcCtx)
return l.AdminLogin(in)
}
func (s *AdminServer) AdminRefresh(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
l := logic.NewAdminRefreshLogic(ctx, s.svcCtx)
return l.AdminRefresh(in)
}
func (s *AdminServer) LoginInfo(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
l := logic.NewLoginInfoLogic(ctx, s.svcCtx)
return l.LoginInfo(in)
}
func (s *AdminServer) ServiceInfo(ctx context.Context, in *admin.InfoRequest) (*admin.Response, error) {
l := logic.NewServiceInfoLogic(ctx, s.svcCtx)
return l.ServiceInfo(in)
}
func (s *AdminServer) ServiceEdit(ctx context.Context, in *admin.ServiceEditRequest) (*admin.Response, error) {
l := logic.NewServiceEditLogic(ctx, s.svcCtx)
return l.ServiceEdit(in)
}
func (s *AdminServer) ServiceItems(ctx context.Context, in *admin.ServiceItemsRequest) (*admin.Response, error) {
l := logic.NewServiceItemsLogic(ctx, s.svcCtx)
return l.ServiceItems(in)
}
func (s *AdminServer) ServiceStatus(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
l := logic.NewServiceStatusLogic(ctx, s.svcCtx)
return l.ServiceStatus(in)
}
func (s *AdminServer) ServiceNames(ctx context.Context, in *admin.ServiceNameRequest) (*admin.Response, error) {
l := logic.NewServiceNamesLogic(ctx, s.svcCtx)
return l.ServiceNames(in)
}