noticeManage.js 1.51 KB
exports.domain = "http://172.16.6.127:9090";
// exports.domain = require('../config/common.js').domain;
// exports.domain = 'http://localhost:30012';

exports.res = [
{
	route:'/operations/notice/index',
	method:'GET',
	view:'pages/notice/noticeManage',
	src:'/notice/noticeManage'
},
{
	route:'/operations/notice/getList',
	method:'POST',
	url: '/notice/getList',
	params: [
		{name: 'title', type: 'string'},
		{name: 'position', type: 'Number'},
		{name: 'showChannel', type: 'string'}
	]
},
{
	route:'/operations/notice/addNotice',
	method:'POST',
	url: '/notice/addNotice',
	params: [
		{name: 'title', type: 'string'},
		{name: 'position', type: 'Number'},
		{name: 'showChannels', type: 'string'},
		{name: 'url', type: 'string'},
		{name: 'img', type: 'string'},
		{name: 'startTime', type: 'Number'},
		{name: 'endTime', type: 'Number'}
	]
},
{
	route:'/operations/notice/setStatus',
	method:'POST',
	url: '/notice/setStatus',
	params: [
		{name: 'id', type: 'Number'},
		{name: 'status', type: 'Number'}
	]
},
{
	route:'/operations/notice/updateNotice',
	method:'POST',
	url: '/notice/updateNotice',
	params: [
		{name: 'id', type: 'Number'},
		{name: 'title', type: 'string'},
		{name: 'position', type: 'Number'},
		{name: 'showChannels', type: 'string'},
		{name: 'url', type: 'string'},
		{name: 'img', type: 'string'},
		{name: 'startTime', type: 'Number'},
		{name: 'endTime', type: 'Number'}
	]
},
{
	route:'/operations/notice/delNotice',
	method:'POST',
	url: '/notice/delNotice',
	params: [
		{name: 'id', type: 'Number'}
	]
}
];