subjectManage.js 2.58 KB
// exports.domain = "http://192.168.102.201:8082/platform";
exports.domain = require('../config/common.js').domain;

exports.res = [
{
	route: '/runManage/subjectManage/index',
	method: 'GET',
	view: 'pages/product/subjectManage',
	src: '/product/subjectManage'
}, 
{
	route: '/runManage/subjectManage/subjectList',//活动列表
	method: 'POST',
	isJsonRaw: true,
	url: '/activity/querySpecialActivityPage',
	params: [
		{name: 'page', type: 'number'},
       	{name: 'size', type: 'number',def:10},
       	{name: 'sort', type: 'string'},
       	{name: 'title', type: 'string'},
       	{name: 'plateform', type: 'string'},
       	{name: 'status', type: 'number'}
    ]
},
{
	route: '/runManage/subjectManage/addSubject',//添加活动
	method: 'POST',
	isJsonRaw: true,
	url: '/activity/addSpecialActivity',
	params: [
       	{name: 'sort', type: 'string'},
       	{name: 'title', type: 'string'},
       	{name: 'plateform', type: 'string'},
       	{name: 'promotionName', type: 'string'},
       	{name: 'startTime', type: 'number'},
       	{name: 'endTime', type: 'number'},
       	{name: 'startTime', type: 'number'},
       	{name: 'productPoolId', type: 'number'},
       	{name: 'coverUrl', type: 'string'},
       	{name: 'logoUrl', type: 'string'},
       	{name: 'webUrl', type: 'string'},
       	{name: 'orderNum', type: 'number'}
    ]
},
{
	route: '/runManage/subjectManage/modify',//修改活动
	method: 'POST',
	isJsonRaw: true,
	url: '/activity/updateByPrimaryKey',
	params: [
		{name: 'id', type: 'number'},
		{name: 'sort', type: 'string'},
       	{name: 'title', type: 'string'},
       	{name: 'plateform', type: 'string'},
       	{name: 'promotionName', type: 'string'},
       	{name: 'startTime', type: 'number'},
       	{name: 'endTime', type: 'number'},
       	{name: 'startTime', type: 'number'},
       	{name: 'productPoolId', type: 'number'},
       	{name: 'coverUrl', type: 'string'},
       	{name: 'logoUrl', type: 'string'},
       	{name: 'webUrl', type: 'string'},
       	{name: 'orderNum', type: 'number'}
	]
},
{
	route: '/runManage/subjectManage/delSubject',//删除活动
	method: 'POST',
	isJsonRaw: true,
	url: '/activity/deleteSpecialActivity',
	params: [
		{name: 'id', type: 'number'}
	]
},
{
	route: '/runManage/subjectManage/queryBaseProductPoolListByName',
	method: 'POST',
	isJsonRaw: true,
	url: '/pool/queryBaseProductPoolList',
	params: [
		{name: 'poolName', type: 'string'}
	]
},
{
	route: '/runManage/subjectManage/queryBaseProductPoolListById',
	method: 'POST',
	isJsonRaw: true,
	url: '/pool/queryBaseProductPoolList',
	params: [
		{name: 'id', type: 'number'}
	]
}];