31 lines
676 B
Go
31 lines
676 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"godemo/category/category"
|
|
"godemo/category/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type GetAncestorPathLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewGetAncestorPathLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAncestorPathLogic {
|
|
return &GetAncestorPathLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *GetAncestorPathLogic) GetAncestorPath(in *category.GetAncestorPathRequest) (*category.CategoryPathResponse, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &category.CategoryPathResponse{}, nil
|
|
}
|