| | |
| | | import com.ks.goldcorn.exception.GoldAppException; |
| | | import com.ks.goldcorn.exception.GoldTradeException; |
| | | import com.ks.goldcorn.exception.GoldUserException; |
| | | import com.ks.goldcorn.pojo.DO.GoldCornConsumeSource; |
| | | import com.ks.goldcorn.pojo.DO.GoldCornGetSource; |
| | | |
| | | /** |
| | | * 金币交易服务 |
| | |
| | | |
| | | |
| | | /** |
| | | * 获取下次可以做任务的时间(返回时间戳) |
| | | * @param appCode |
| | | * @param uid |
| | | * @param sourceCode |
| | | * @return |
| | | */ |
| | | public long getNextDoTaskTime(String appCode, String uid, String sourceCode); |
| | | |
| | | |
| | | /** |
| | | * 添加金币 |
| | | * |
| | | * @param appCode |
| | | * @param uid |
| | | * @param source |
| | | * @param sourceCode id不能为空 |
| | | * @param goldCornCount 金币数量 |
| | | * @param title 如果为null则填充source里面的title |
| | | * @param desc 如果为null则填充source里面的desc |
| | | * @throws GoldAppException |
| | | * @throws GoldUserException |
| | | * @throws GoldTradeException |
| | | */ |
| | | public void addGoldCorn(String appCode, String uid, GoldCornGetSource source) throws GoldAppException, GoldUserException,GoldTradeException; |
| | | public void addGoldCorn(String appCode, String uid, String sourceCode, Integer goldCornCount, String title, String desc) throws GoldAppException, GoldUserException, GoldTradeException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 消耗金币 |
| | | * |
| | | * @param appCode |
| | | * @param uid |
| | | * @param source |
| | | * @param sourceCode |
| | | * @param goldCornCount 金币数量 |
| | | * @param title 如果为null则填充source里面的title |
| | | * @param desc 如果为null则填充source里面的desc |
| | | * @throws GoldAppException |
| | | * @throws GoldUserException |
| | | * @throws GoldTradeException |
| | | */ |
| | | public void consumeGoldCorn(String appCode, String uid, GoldCornConsumeSource source) throws GoldAppException,GoldUserException,GoldTradeException; |
| | | public void consumeGoldCorn(String appCode, String uid, String sourceCode, Integer goldCornCount, String title, String desc) throws GoldAppException, GoldUserException, GoldTradeException; |
| | | } |