123456789101112131415161718192021222324252627 |
- package service
- import (
- "bp.jydev.jianyu360.cn/BaseService/userCenter/entity"
- userCenter "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
- )
- type SubscribeService struct{}
- // 获取用户订阅信息 优先大会员、然后商机管理、然后超级订阅、然后免费订阅
- func (this *SubscribeService) GetSubscribeInfo(data *userCenter.UserReq) (res map[string]interface{}, msg string) {
- info := entity.UserInfoReq{
- Mysql: entity.Mysql,
- Mgo: entity.Mgo,
- UserId: data.UserId,
- Types: data.Types,
- BaseMysql: entity.BaseMysql,
- }
- //正常用户
- res, msg = info.GetUserInfo()
- if res != nil && msg == "" {
- return
- }
- //游客
- res, msg = info.GetTouristInfo()
- return
- }
|