1234567891011121314151617181920212223242526272829303132333435 |
- package logic
- import (
- "context"
- "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: res.Data,
- }, nil
- }
|