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 }