shopMallHandler.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var ShopMallHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. ShopMallHandler.prototype.getMallTabsRequest = async(function(openLvId){
  12. return await(this.socket.requestAsync('area.shopMallHandler.getMallTabsRequest',{openLvId:openLvId}));
  13. });
  14. ShopMallHandler.prototype.getMallScoreItemListRequest = async(function(){
  15. return await(this.socket.requestAsync('area.shopMallHandler.getMallScoreItemListRequest',{}));
  16. });
  17. ShopMallHandler.prototype.buyMallItemRequest = async(function(c2s_itemId,c2s_count,c2s_playerId,c2s_bDiamond){
  18. return await(this.socket.requestAsync('area.shopMallHandler.buyMallItemRequest',{c2s_itemId:c2s_itemId,c2s_count:c2s_count,c2s_playerId:c2s_playerId,c2s_bDiamond:c2s_bDiamond}));
  19. });
  20. ShopMallHandler.prototype.getMallItemListRequest = async(function(c2s_itemType){
  21. return await(this.socket.requestAsync('area.shopMallHandler.getMallItemListRequest',{c2s_itemType:c2s_itemType}));
  22. });
  23. ShopMallHandler.prototype.buyMallScoreItemRequest = async(function(c2s_itemId){
  24. return await(this.socket.requestAsync('area.shopMallHandler.buyMallScoreItemRequest',{c2s_itemId:c2s_itemId}));
  25. });
  26. module.exports = ShopMallHandler;