31 lines
557 B
Go
31 lines
557 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"admin/admin"
|
|
"admin/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type StatusLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StatusLogic {
|
|
return &StatusLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *StatusLogic) Status(in *admin.StatusRequest) (*admin.Response, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &admin.Response{}, nil
|
|
}
|