| | |
| | | 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; |
| | | |
| | | /** |
| | | * 金币交易服务 |
| | |
| | | public interface GoldCornTradeService { |
| | | |
| | | |
| | | |
| | | /** |
| | | * 添加金币 |
| | | * |
| | | * @param appCode |
| | | * @param uid |
| | | * @param source |
| | | * @param sourceCode id不能为空 |
| | | * @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,String title,String desc) throws GoldAppException, GoldUserException,GoldTradeException; |
| | | |
| | | |
| | | /** |
| | |
| | | * @param source |
| | | * @throws GoldTradeException |
| | | */ |
| | | public void consumeGoldCorn(String appCode, String uid, GoldCornConsumeSource source) throws GoldAppException,GoldUserException,GoldTradeException; |
| | | /** |
| | | * |
| | | * @param appCode |
| | | * @param uid |
| | | * @param sourceCode |
| | | * @param title 如果为null则填充source里面的title |
| | | * @param desc 如果为null则填充source里面的desc |
| | | * @throws GoldAppException |
| | | * @throws GoldUserException |
| | | * @throws GoldTradeException |
| | | */ |
| | | public void consumeGoldCorn(String appCode, String uid,String sourceCode,String title,String desc) throws GoldAppException,GoldUserException,GoldTradeException; |
| | | } |