@Component public class AcademyRegisterUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static AcademyRegisterUtil |
academyRegisterUtil |
| 构造器和说明 |
|---|
AcademyRegisterUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
convertOldUserWhenRegister(Long userId,
String openid,
String os,
String pwd,
String code,
Long recommendByWhom) |
static Long |
createNewUser(String accountType,
String account,
String pwd,
String img,
String openid,
Long recommendByWhom,
String os,
String deviceToken) |
static Long |
createUserMemberRelation(Long idRecommendByWhom,
Long uid,
Integer giftMemberDays) |
static void |
createUserMemberRelationByDays(Long uid,
Long startAt,
Long endAt,
Integer days,
Long now) |
static String |
dateTime() |
static String |
getDate(Long time) |
static String |
getInvitation(Long uid)
show 获取唯一邀请码
|
static Long |
getNewestStartAt(Long uid) |
void |
init() |
static boolean |
pushToUser(javax.servlet.http.HttpServletResponse response,
String platForm,
String deviceToken,
String alias) |
public static AcademyRegisterUtil academyRegisterUtil
@PostConstruct public void init()
public static String convertOldUserWhenRegister(Long userId, String openid, String os, String pwd, String code, Long recommendByWhom) throws Exception
Exceptionpublic static Long createNewUser(String accountType, String account, String pwd, String img, String openid, Long recommendByWhom, String os, String deviceToken) throws Exception
Exceptionpublic static Long getNewestStartAt(Long uid) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic static String getInvitation(Long uid) throws Exception
uid - 用户idException - 异常信息public static Long createUserMemberRelation(Long idRecommendByWhom, Long uid, Integer giftMemberDays) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic static void createUserMemberRelationByDays(Long uid, Long startAt, Long endAt, Integer days, Long now) throws com.gemantic.common.exception.ServiceException, com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic static boolean pushToUser(javax.servlet.http.HttpServletResponse response,
String platForm,
String deviceToken,
String alias)
throws IOException
IOExceptionpublic static String dateTime()
Copyright © 2018. All rights reserved.