// 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) Add(ctx context.Context, in *admin.AddRequest) (*admin.Response, error) { l := logic.NewAddLogic(ctx, s.svcCtx) return l.Add(in) } func (s *AdminServer) Edit(ctx context.Context, in *admin.EditRequest) (*admin.Response, error) { l := logic.NewEditLogic(ctx, s.svcCtx) return l.Edit(in) } func (s *AdminServer) Status(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) { l := logic.NewStatusLogic(ctx, s.svcCtx) return l.Status(in) }