package logic import ( "context" "github.com/gogf/gf/v2/util/gconv" "jyBXCore/rpc/type/bxcore" "jyBXCore/api/internal/svc" "jyBXCore/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type SearchCriteriaLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewSearchCriteriaLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearchCriteriaLogic { return &SearchCriteriaLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *SearchCriteriaLogic) SearchCriteria() (resp *types.CommonResp, err error) { // todo: add your logic here and delete this line res, err := l.svcCtx.BxCore.PropertySearchCriteria(l.ctx, &bxcore.SearchReq{}) return &types.CommonResp{ Err_code: res.ErrCode, Err_msg: res.ErrMsg, Data: gconv.Map(res.Data), }, nil }