helpContent.js 1.86 KB
// exports.domain = "http://172.16.6.236:8080/platform";
exports.domain = require('../config/common.js').domain;
// exports.domain = 'http://localhost:30012';

exports.res = [
{
	route:'/operations/helpcontent/index',
	method:'GET',
	view:'pages/help/helpContent',
	src:'/help/helpContent'
},
{
	route:'/operations/helpcontent/getAllHelpContent',
	method:'POST',
	url: '/HelpContentRest/getAllHelpContent',
	params: [
		{name: 'categoryId', type: 'Number'},
		{name: 'platform', type: 'string'},
		// {name: 'page', type: 'Number'},
		// {name: 'size', type: 'Number', def:10}
	]
},
{
	route:'/operations/helpcontent/addHelpContent',
	method:'POST',
	url:'/HelpContentRest/addHelpContent',
	params: [
		{name: 'title', type: 'string'},
		{name: 'categoryId', type: 'Number'},
		{name: 'content', type: 'string'},
		{name: 'platform', type: 'string'}
	]
},
{
	route:'/operations/helpcontent/updateHelpContent',
	method:'POST',
	url:'/HelpContentRest/updateHelpContent',
	params: [
		{name: 'id', type: 'Number'},
		{name: 'title', type: 'string'},
		{name: 'categoryId', type: 'Number'},
		{name: 'content', type: 'string'},
		{name: 'platform', type: 'string'}
	]
},
{
	route:'/operations/helpcontent/deleteHelpContent',
	method:'POST',
	url:'/HelpContentRest/deleteHelpContent',
	params: [
		{name: 'id', type: 'Number'}
	]
},
{
	route:'/operations/helpcontent/getHelpContentByCategoryId',
	method:'POST',
	url:'/HelpContentRest/getHelpContentByCategoryId',
	params:[
		{name: 'categoryId', type: 'Number'}
	]
},
{
	route:'/operations/helpcontent/getSecondCategoryList',
	method:'POST',
	url:'/HelpCategoryRest/getSecondCategoryList',
	params:[]
},
{
	route:'/operations/helpcontent/getAllHelpCategory',
	method:'POST',
	url:'/HelpCategoryRest/getAllHelpCategory',
	params:[]
},
{
	route:'/operations/helpcontent/getHelpCategory',
	method:'POST',
	url:'/HelpCategoryRest/getHelpCategory',
	params:[]
}
];