12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package logic
- import (
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/api/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/api/internal/types"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/rpc/type/bxsubscribe"
- "context"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type SaveTSGuideLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewSaveTSGuideLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SaveTSGuideLogic {
- return &SaveTSGuideLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *SaveTSGuideLogic) SaveTSGuide(req *types.SaveTsGuideReq) (resp *types.CommonResp, err error) {
- // todo: add your logic here and delete this line
- _, err = l.svcCtx.Suscribe.SaveTSGuide(l.ctx, &bxsubscribe.SaveTSGuideReq{
- AppId: req.AppId,
- UserType: req.UserType,
- UserId: req.UserId,
- NewUserId: req.NewUserId,
- EntId: req.EntId,
- PositionId: req.PositionId,
- AccountId: req.AccountId,
- PositionType: req.PositionType,
- Area: req.Area,
- District: req.District,
- Keywords: req.Keywords,
- AppSwitch: req.AppSwitch,
- })
- if err != nil {
- return &types.CommonResp{
- Err_code: -1,
- Err_msg: err.Error(),
- Data: nil,
- }, nil
- }
- return &types.CommonResp{
- Err_code: 0,
- }, nil
- }
|