httpPublicRoomMgr.js 666 B

123456789101112131415161718192021222324252627
  1. /**
  2. * 房间管理http接口
  3. */
  4. 'use strict';
  5. var F = require('../common/function');
  6. var _ = require('underscore');
  7. _.str = require('underscore.string');
  8. _.v = require('validator');
  9. var co = require('co');
  10. module.exports = function (app) {
  11. var mgr_map = app.common_mgr.mgr_map;
  12. var http_app = app.app;
  13. /**
  14. * 7.4.获取公聊大厅标题(Client→Server) 军圣
  15. */
  16. http_app.regPost('/imroom/:apiVer/publicTitle', function* (ctx) {
  17. yield F.checkParamsNull(ctx, "room_id");
  18. let room_id = ctx.I.room_id;
  19. let res = yield mgr_map.publicRoom.getPublicRoomTitle(room_id);
  20. F.setResJson(ctx, 0, res);
  21. });
  22. };