fashionHandler.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var FashionHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. FashionHandler.prototype.equipFashionRequest = async(function(code,ison){
  12. return await(this.socket.requestAsync('area.fashionHandler.equipFashionRequest',{code:code,ison:ison}));
  13. });
  14. FashionHandler.prototype.getFashionsRequest = async(function(){
  15. return await(this.socket.requestAsync('area.fashionHandler.getFashionsRequest',{}));
  16. });
  17. FashionHandler.prototype.deleteFashionFlagRequest = async(function(code){
  18. return await(this.socket.requestAsync('area.fashionHandler.deleteFashionFlagRequest',{code:code}));
  19. });
  20. FashionHandler.prototype.dyeFashionRequest = async(function(code,dye_type){
  21. return await(this.socket.requestAsync('area.fashionHandler.dyeFashionRequest',{code:code,dye_type:dye_type}));
  22. });
  23. FashionHandler.prototype.onOnFashionGetPush = function(cb){
  24. this.socket.on('area.fashionPush.onFashionGetPush',cb);
  25. }
  26. module.exports = FashionHandler;