Files
ocean/category/internal/logic/getchildrenlogic.go
2025-05-22 19:39:08 +08:00

32 lines
670 B
Go

package logic
import (
"context"
"godemo/category/category"
"godemo/category/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type GetChildrenLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewGetChildrenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetChildrenLogic {
return &GetChildrenLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// 层级结构操作
func (l *GetChildrenLogic) GetChildren(in *category.GetChildrenRequest) (*category.CategoryListResponse, error) {
// todo: add your logic here and delete this line
return &category.CategoryListResponse{}, nil
}