Authored by weiqingting

delete

Showing 89 changed files with 0 additions and 4355 deletions

Too many changes to show.

To preserve performance only 89 of 89+ files are displayed.

module.exports = function (app){
app.get("/goods/auditing/index", "SNS.ShareOrderAudit", function (req,res){
this.$extend={
moduleName:"晒单评价管理",
pageName:"晒单评价审核"
}
});
//晒单列表
app.post("/shareOrder/shareOrderList","shareOrderAudit_shareOrderList");
//查询晒单号
app.post("/shareOrder/queryShareOrderNum","shareOrderAudit_queryShareOrderNum");
//审核通过、驳回
app.post("/shareOrder/aud","shareOrderAudit_aud");
//推荐
app.post("/shareOrder/recommend","shareOrderAudit_recommend");
}
\ No newline at end of file
module.exports = function (app) {
app.get("/activity/drawline/index", "activity.Index", function (req, res) {
this.$extend = {
moduleName:"活动管理",
pageName:"抽奖活动管理",
gridurl:'/supplier/store/indexPage'
}
});
app.get("/activity/drawline/add", "activity.Edit", function (req, res) {
this.$extend = {
moduleName:"活动管理",
pageName:"新增抽奖活动",
action:'/DrawlineActivityRest/addDrawlineActivity',
data:{
activityId:0,
backgroundStyle:"",
prizeList: ""
}
}
});
app.get("/activity/drawline/update/:activityId", "activity.Edit", "activity_getDrawlineActivityDetail", function (rs,req,res) {
this.$extend = {
moduleName:"活动管理",
pageName:"编辑抽奖活动",
action : '/DrawlineActivityRest/updateDrawlineActivity',
data:rs.data
}
});
app.get("/activity/drawline/data/:activityId", "activity.Data", "activity_getPrizeDetailInfo", function (rs,req,res) {
this.$extend = {
moduleName:"活动管理",
pageName:"抽奖活动中奖情况",
data:rs.data
}
});
//抽奖活动列表
app.post("/DrawlineActivityRest/getDrawlineActivityList","activity_getDrawlineActivityList");
//关闭活动
app.post("/DrawlineActivityRest/closeActivity","activity_closeActivity");
//开启活动
app.post("/DrawlineActivityRest/openActivity","activity_openActivity");
//新增抽签活动
app.post("/DrawlineActivityRest/addDrawlineActivity","activity_addDrawlineActivity");
//保存编辑抽签活动
app.post("/DrawlineActivityRest/updateDrawlineActivity","activity_updateDrawlineActivity");
//获取抽奖活动详情
app.post("/DrawlineActivityRest/getDrawlineActivityDetail","activity_getDrawlineActivityDetail");
//手动开奖
app.post("/DrawlineActivityRest/luckyUserDraw","activity_luckyUserDraw");
//删除抽奖活动
app.post("/DrawlineActivityRest/deleteDrawlineActivity","activity_deleteDrawlineActivity");
}
module.exports=function(app) {
/*品牌款型系列*/
app.get("/erpproduct/brandfolder/index","baserule.Brandmodel",function(){
this.$extend={
moduleName:'商品基础规则',
pageName:'品牌款型系列'
}
});
/*初始化列表*/
app.post("/erpproduct/brandfolder/list","brandmodel_queryAll");
/*添加*/
app.post("/erpproduct/brandfolder/add","brandmodel_add");
/*修改*/
app.post("/erpproduct/brandfolder/update","brandmodel_update");
/*关闭*/
app.post("/erpproduct/brandfolder/close","brandmodel_close");
/*开启*/
app.post("/erpproduct/brandfolder/open","brandmodel_open");
}
\ No newline at end of file
module.exports=function(app) {
/**/
app.get("/erpproduct/sortsize/index","baserule.CateSize","porattr_queryProductSortListByConf",function(pros){
this.$extend={
moduleName:'商品基础规则',
pageName:'品类关联尺码列表',
data:pros.data
}
})
app.post("/erpproduct/sortsize/ajax/index","catesize_querySizeListBySortId");
/*添加尺码接口【验证通过】*/
app.post("/erpproduct/sortsize/ajax/add","catesize_addSortSize");
/*删除单个品类尺码接口【待验证】*/
app.post("/erpproduct/sortsize/ajax/delete","catesize_deleteSortSize");
/*修改品类尺码排序接口*/
app.post("/product/updateSortSize","catesize_updateSortSize");
//************************品类尺码属性管理*****************************
app.get("/erpproduct/sortattribute/index","baserule.CateSizeAttr","porattr_queryProductSortListByConf",function(pros){
this.$extend={
moduleName:'商品基础规则',
pageName:'品类尺码属性',
data:pros.data
}
});
/*获取品类关联尺码属性列表【验证通过】*/
app.post("/erpproduct/sortattribute/ajax/index","catesize_queryList");
/*添加品类关联尺码属性接口【待验证】*/
app.post("/erpproduct/sortattribute/ajax/add","catesize_add");
/*删除品类关联尺码属性接口【待验证】*/
app.post("/erpproduct/sortattribute/ajax/delete","catesize_delete");
/*修改品类关联尺码属性接口【待验证】*/
app.post("/sortAttribute/updateOrderBy","catesize_updateOrderBy");
}
\ No newline at end of file
module.exports=function(app) {
app.get("/erpproduct/color/index","baserule.color.Index",function(pros){
this.$extend={
moduleName:'商品基础规则',
pageName:'颜色管理列表'
}
});
/*获取颜色列表*/
app.post("/erpproduct/product/colorList","color_queryProductColors");
/*获取单个颜色*/
// app.post("/erpproduct/product/getColor","color_queryProductColor");
/*新增颜色页面渲染*/
app.get("/erpproduct/product/addColor","baserule.color.Edit",function(){
this.$extend={
moduleName:'商品基础规则',
pageName:'添加颜色',
url:'/erpproduct/product/saveColor',
data:{}
}
});
/*新增颜色*/
app.post("/erpproduct/product/saveColor","color_addProductColor");
app.get("/erpproduct/product/addColor/:param","baserule.color.Edit","color_queryProductColor",function(color,req,res){
this.$extend={
moduleName:'商品基础规则',
pageName:'修改颜色',
url:'/erpproduct/product/updatColor',
data:color.data
}
});
/*修改颜色*/
app.post("/erpproduct/product/updatColor","color_updateProductColor");
}
\ No newline at end of file
module.exports=function(app) {
/*商品管理>【产品属性】页面渲染*/
app.get("/erpproduct/attribute/index","baserule.Porattr","porattr_queryProductSortListByConf",function(pros){
this.$extend={
moduleName:'商品基础规则',
pageName:'产品属性列表',
data:pros.data
}
});
/*商品管理>【产品属性ajax获取】*/
app.post("/product/attr/get","porattr_getAttr");
/*商品管理>【添加产品属性ajax】*/
app.post("/product/attr/add","porattr_addProductAttribute");
/*商品管理>【更新产品属性ajax】*/
app.post("/product/attr/update","porattr_updateProductAttribute");
/*商品管理【根据类目ID ajax查询属性列表】*/
app.post("/product/attr/queryProductAttributeList","porattr_queryProductAttributeList");
/*商品管理【根据类目ID ajax查询属性的详细信息】*/
app.post("/product/attr/getProductAttribute","porattr_getProductAttribute");
}
\ No newline at end of file
module.exports=function(app) {
/*产品管理【品类列表】页面渲染*/
app.get("/erpproduct/sizeattribute/index","baserule.SizeAttribute",function(){
this.$extend={
moduleName:'商品基础规则',
pageName:'品类关联实物测量属性列表'
}
});
/*列表数据*/
app.post("/erpproduct/sizeattribute/propertyList","sizeattribute_querySizeAttributeList");
/*添加尺码属性*/
app.post("/erpproduct/sizeattribute/propertyAdd","sizeattribute_addSizeAttribute");
/*修改尺码属性*/
app.post("/erpproduct/sizeattribute/propertyModify","sizeattribute_updateSizeAttribute");
}
\ No newline at end of file
module.exports=function(app) {
/*尺码库列表*/
app.get("/erpproduct/size/index","baserule.Sizelibrary",function(){
this.$extend={
moduleName:'商品基础规则',
pageName:'尺码库列表'
}
});
/*列表数据*/
app.post("/erpproduct/sizeattribute/sizeList","sizelibrary_querySizeList");
/*获取单个尺码*/
app.post("/erpproduct/size/getSize","sizelibrary_getSize");
/*新增尺码*/
app.post("/erpproduct/size/addSize","sizelibrary_addSize");
/*修改尺码*/
app.post("/erpproduct/size/updateSize","sizelibrary_updateSize");
}
\ No newline at end of file
module.exports = function (app){
app.get("/erpproduct/brands/index", "brand.Index", function (req,res){
this.$extend={
moduleName:"品牌管理",
pageName:"品牌管理"
}
});
app.get("/erpproduct/brands/edit/:brandId", "brand.Edit", "brand_getBrandDetail", function (rs,req,res){
this.$extend={
action: '/brand/edit',
data:rs.data
}
});
app.get("/erpproduct/brands/add", "brand.Edit", function (req,res){
this.$extend={
action:'/erpproduct/ajax/brands/add',
data:{}
}
});
//品牌管理列表
app.post("/brand/getBrandList","brand_index");
//保存修改品牌
app.post("/brand/edit","brand_editBrand");
//添加品牌
app.post("/erpproduct/ajax/brands/add","brand_addBrand");
}
module.exports=function(app) {
/*物理类目管理*/
app.get("/erpproduct/sort/index","category.Index","category_queryAllProductSortList",function(plist,req,res){
this.$extend={
moduleName:'物理类目管理',
pageName:'物理类目管理列表',
data:plist.data
}
});
/*添加物理类目管理*/
app.get("/product/class/new","category.Edit",function(){
this.$extend={
moduleName:'物理类目管理',
pageName:'添加物理类目',
action:'/product/sort/addProductSort'
}
});
/*修改物理类目管理*/
app.get("/product/class/edit/:param","category.Edit","category_getProductSort",function(sort){
this.$extend={
moduleName:'物理类目管理',
pageName:'修改物理类目',
action:'/product/sort/update'
}
return sort;
});
/*【添加品类】ajax请求接口*/
app.post("/product/sort/addProductSort","category_addProductSort");
/*【修改品类】ajax请求接口*/
app.post("/product/sort/update","category_updateProductSort");
/*打开*/
app.post("/erpproduct/sorter/open","category_publishProductSort");
/*关闭*/
app.post("/erpproduct/sorter/close","category_closeProductSort");
}
\ No newline at end of file
module.exports=function(app) {
app.get("/login","common.Login");
app.get("/logout","common.Login",function (req) {
delete req.session.user;
});
app.post("/login", "common_login", function (login, req, res){
if (login.code == 200) {
res.myRedirect('/');
} else {
res.myRedirect('/login');
}
});
app.get("/","common.index");
app.get("/error", "common.Error");
}
module.exports=function(app) {
/**/
app.post("/supplier/supplier/getSupplierListByIdName","select_getSupplierListByIdName");
/**/
app.post("/erpproduct/brands/getBrandNames","select_getBrandNames");
app.post("/supplier/storeadmin/managerName","select_getUsersByIdentity");
/**/
// app.post("/ShopsAdminRest/getUsersByIdentity","select_getUsersByIdentity");
/**/
app.post("/product/querySizeAttributesByName","select_querySizeAttributesByName");
app.post("/product/querySizeListBySortId4Html","select_querySizeListBySortId4Html");
/*尺码模糊查询【验证通过】*/
app.post("/product/querySizeByNameForSelect","select_querySizeByNameForSelect");
/*查询品牌列表接口*/
app.post("/erpproduct/brands/queryAllBrands", "select_queryAllBrands");
/*查询供应商列表接口*/
app.post("/supplier/supplier/queryAllSupplier","select_queryAllSupplier");
/*查询一级类目列表接口*/
app.post("/product/queryMaxSortByName","select_queryMaxSortByName");
/*查询店铺列表接口*/
app.post("/ShopsRest/queryAllShops","select_queryAllShops");
/*查询通过审核店铺列表接口*/
app.post("/ShopsRest/selectCheckPassShopsByName","select_selectCheckPassShopsByName");
/*根据品牌查询店铺*/
app.post("/ShopsRest/queryShopsByBrandId","select_queryShopsByBrandId");
/*模糊查询*/
app.post("/DrawlineActivityRest/selectActivityListForSelect","select_selectActivityListForSelect");
/*获取JIT店铺*/
app.post("/AgreementRest/getJitSupplierByBrandId","select_getJitSupplierByBrandId");
/**/
app.post("/guang/article/getSortList","select_getSortList");
/*发券搜索*/
app.post("/coupon/queryList","select_queryList");
/*获取所有APP版本号列表*/
app.post("/suggest/suggest/getAllAppVersions","select_getAllAppVersions");
/*获取所有回复人*/
app.post("/suggest/suggest/findAllReplyInfo","select_findAllReplyInfo");
/*类目*/
app.post("/goods/query/querySortBySmallSort","select_querySortBySmallSort");
app.post("/product/class/queryAllProductSortList","select_queryAllMaxSortList");
app.post("/product/class/queryProductSortList","select_queryProductSortList");
app.post("/sale/product/queryPSNotTreeWhenLevelAndStatus","select_queryPSNotTreeWhenLevelAndStatus");
app.post("/sale/product/queryPSListByParentIdWhenStatus","select_queryPSListByParentIdWhenStatus");
app.post("/refundExchangeAttribute/queryRefundExchangeProductSkn","select_queryRefundExchangeProductSkn");
app.post("/product/fuzzySearchProductSortIds","select_fuzzySearchProductSortIds");
app.post("/product/searchAllSortLevel","select_searchAllSortLevel");
}
\ No newline at end of file
module.exports = function (app) {
app.get("/ajax/link/:name", "common_downExcel");
app.get("/ajax/down", "common_exportExcel");
app.post("/ajax/upload", "common_multipart");
app.post("/ajax/ueditor", "common_baiduUeditor");
app.post("/ajax/proxy", "common_proxy");
app.get("/ajax/download", "common_download")
};
/**
* 搜索接口
* @param app
*/
module.exports=function(app) {
//品牌列表
app.get("/ajax/yohosearch","common_brandlist");
//商品列表
app.post("/yohosearch/search","common_search")
};
module.exports=function(app) {
/*基础商品列表*/
app.get("/supplier/baseproduct/audit","goods.audit.Index",function(){
this.$extend={
moduleName:'商品管理',
pageName:'上架审核'
}
});
/*列表头部各个审核状态的数量*/
app.post("/product/queryTabCheck","audit_queryTabCheck");
/*ajax列表数据*/
app.post("/product/queryNetSaleInforList","audit_queryNetSaleInforList");
/*驳回操作*/
app.post("/product/updateProductSknStatus","audit_updateProductSknStatus");
}
\ No newline at end of file
module.exports=function(app) {
/*基础商品列表*/
app.get("/supplier/baseproduct/index","goods.basegoods.Index",function(){
this.$extend={
moduleName:"基础商品",
pageName:"商品列表"
}
});
/*列表头部各个审核状态的数量*/
app.post("/base/goods/ajax/auditCount","basegoods_getbaseProductCountByStatus");
/*ajax列表数据*/
app.post("/product/getBaseProductList","basegoods_getBaseProductList");
/*通过*/
app.post("/base/goods/pass","basegoods_batchAuditPassBaseProduct");
/*驳回*/
app.post("/base/goods/reject","basegoods_batchAuditRejectBaseProduct");
/*添加页面*/
app.get("/base/goods/add","goods.basegoods.Edit","basegoods_queryProductColors",function(colos,req,res){
this.$extend={
moduleName:"基础商品",
pageName:"添加商品",
action: "/base/goods/ajax/add",
btnText:"提交审核",
list:colos.data.list
}
});
/*添加数据接口*/
app.post("/base/goods/ajax/add","basegoods_addBaseProduct");
/*修改页面*/
app.get("/base/goods/update/:productSkn/:isAuditing","goods.basegoods.Edit",["basegoods_queryProductColors","basegoods_getBaseProduct"],function(colos,info){
this.$extend={
moduleName:"基础商品",
pageName:"修改商品",
action: "/base/goods/ajax/update",
btnText:"保存",
list:colos.data.list
}
return info;
});
/*删除[废弃]*/
// app.post("/base/goods/ajax/delete","basegoods_deleteBaseProduct");
/*修改接口*/
app.post("/base/goods/ajax/update","basegoods_updateBaseProduct");
/*基础商品详情空页面*/
app.get("/base/goods/info/:productSkn/:isAuditing","goods.basegoods.Info","basegoods_getBaseProduct",function(info){
this.$extend={
moduleName:"基础商品",
pageName:"商品详情"
}
return info;
});
/*检查SKU*/
app.post("/goods/base/checkSkuBarCodeExist","basegoods_checkSkuBarCodeExist");
/*商品属性【网销那边,可以迁移过去】*/
app.post("/base/goods/queryAllProductAttr","basegoods_queryAllBySortId4Html");
/*尺码列表【网销那边,可以迁移过去】*/
app.post("/base/goods/queryMaterialList","basegoods_queryMaterialList");
/*批量*/
app.get("/goods/piliang/batch","goods.basegoods.Batch",function(){
this.$extend={
moduleName:"基础商品",
pageName:"批量功能",
isPL:true
}
});
/*基础商品录入*/
app.get("/goods/base/batch","goods.basegoods.Batch",function(){
this.$extend={
moduleName:"基础商品",
pageName:"基础商品导入",
isPL:false
}
});
/*通过任务ID查看任务是否被执行完*/
app.post("/product/queryBatchImportResult","basegoods_queryBatchImportResult");
}
\ No newline at end of file
module.exports=function(app) {
/*品牌货到付款限制页面路由*/
app.get("/goods/cod/brand/index","goods.cod.Brand",function(){
this.$extend={
moduleName:"货到付款限制",
pageName:"品牌设置"
}
});
/*分页*/
app.post("/payDelivery/queryTotalBrandPayDelivery","cod_queryTotalBrandPayDelivery");
/*开启 & 关闭 货到付款*/
app.post("/payDelivery/addPayDeliveryCheck","cod_addPayDeliveryCheck");
/*通过 & 驳回申请*/
app.post("/payDelivery/reviewPayDeliveryCheck","cod_reviewPayDeliveryCheck");
/*获取tab上的数量*/
app.post("/payDelivery/queryCountBrandPayDelivery","cod_queryCountBrandPayDelivery");
/*单品货到付款限制页面路由*/
app.get("/goods/cod/goods/index","goods.cod.Goods",function(){
this.$extend={
moduleName:"货到付款限制",
pageName:"单品设置"
}
});
/*列表*/
app.post("/payDelivery/queryPayDeliveryList","cod_queryPayDeliveryList");
/*开启货到付款*/
app.post("/payDelivery/openPayDelivery","cod_openPayDelivery");
/*关闭货到付款*/
app.post("/payDelivery/closePayDelivery","cod_closePayDelivery");
/*通过申请*/
app.post("/payDelivery/passPayDelivery","cod_passPayDelivery");
/*驳回申请*/
app.post("/payDelivery/rejectPayDelivery","cod_rejectPayDelivery");
/*获取skn列表*/
app.post("/payDelivery/queryPayDeliveryProductSkn","cod_queryPayDeliveryProductSkn");
/*获取tab上的数量*/
app.post("/payDelivery/queryCountProductPayDelivery","cod_queryCountProductPayDelivery");
/*获取品牌列表*/
app.post("/payDelivery/queryPayDeliveryBrandName","cod_queryPayDeliveryBrandName");
/*批量导入*/
app.get("/goods/cod/upload","goods.cod.Upload",function(){
this.$extend={
moduleName:"货到付款限制",
pageName:"批量导入"
}
});
}
\ No newline at end of file
module.exports=function(app) {
/*品牌货到付款限制页面路由*/
app.get("/goods/limitcategory/index","goods.limitcategory.Index",function(){
this.$extend={
moduleName:"商品管理",
pageName:"品类限制"
}
});
/*列表数据*/
app.post("/product/queryProductSortRefundAllReferdSortInfo","limitcategory_queryProductSortRefundAllReferdSortInfo");
/*开启*/
app.post("/product/openProductSortRefundExchange","limitcategory_openProductSortRefundExchange");
/*关闭*/
app.post("/product/closeProductSortRefundExchange","limitcategory_closeProductSortRefundExchange");
};
\ No newline at end of file
module.exports=function(app) {
/*网销信息页面渲染*/
app.get("/goods/netsale/index","goods.netsale.Index",function(){
this.$extend={
moduleName:'商品管理',
pageName:'网销信息'
}
});
/*列表数据*/
app.post("/goods/netsale/getList","netsale_queryNetSaleInforList");
/*tab*/
app.post("/goods/product/queryTabProductNum","netsale_queryTabProductNum");
/*批量skn处理*/
app.post("/goods/product/updateProductSknTimingInfo","netsale_updateProductSknTimingInfo");
/*skc上下架*/
app.post("/goods/product/updateGoodsStatus","netsale_updateGoodsStatus");
/*skc上下架*/
app.post("/goods/product/updateProductSkuStatus","netsale_updateProductSkuStatus");
/*批量页面渲染*/
app.get("/goods/netsale/batch","goods.netsale.Batch",function(){
this.$extend={
moduleName:'商品管理',
pageName:'批量设置'
}
});
/*查看页面渲染*/
app.get("/goods/netsale/info/:param","goods.netsale.Edit",function(){
this.$extend={
moduleName:'商品管理',
pageName:'查看网销信息',
type: 'info'
}
});
/*编辑页面渲染*/
app.get("/goods/netsale/edit/:param","goods.netsale.Edit",function(){
this.$extend={
moduleName:'商品管理',
pageName:'编辑网销信息',
type: 'edit'
}
});
/*编辑页面渲染*/
app.get("/goods/audit/info/:param","goods.netsale.Edit",function(){
this.$extend={
moduleName:'商品管理',
pageName:'查看网销信息',
type: 'info',
action:'audit'
}
});
/*查询网销详情*/
app.post("/goods/netsale/getdata","netsale_getNetSaleInfo");
/*保存完整网销信息*/
app.post("/goods/product/saveNetSaleAllInfo","netsale_saveNetSaleAllInfo");
/*保存基本信息接口*/
app.post("/goods/product/saveNetSaleBaseInfo","netsale_saveNetSaleBaseInfo");
/*保存上架后补全信息*/
app.post("/goods/product/saveAfterSaleInfo","netsale_saveAfterSaleInfo");
/*查询补全信息*/
app.post("/goods/product/queryAttributesByConf","netsale_queryAttributesByConf");
/*通过品牌获取店铺*/
app.post("/goods/ShopsRest/queryShopsByBrandId","netsale_queryShopsByBrandId");
/*查询制作工艺列表*/
app.post("/goods/product/queryMakingProcess","netsale_queryMakingProcess");
/*查询品牌款型系列列表*/
app.post("/goods/brandSeries/queryAll4Select","netsale_queryAll4Select");
/*品牌关联*/
app.post("/goods/product/saveBrandRelation","netsale_saveBrandRelation");
/*保存视频接口*/
app.post("/goods/product/saveNetSaleVideo","netsale_saveNetSaleVideo");
/*关联逛*/
// app.post("/goods/article/queryArticlesBySKN","netsale_queryArticlesBySKN");
/*品牌关联列表*/
app.post("/goods/brands/queryBrandsByStatus","netsale_queryBrandsByStatus");
/*网销信息 -> 商品参数*/
app.post("/goods/product/queryAttributesByConfEx","netsale_queryAttributesByConfEx");
/*调用图片*/
app.post("/productPhoto/queryProductPhotoList","netsale_queryProductPhotoList");
/*保存搜索顺序*/
app.post("/netSale/saveSearchSort","netsale_saveSearchSort");
/*查找热搜词*/
app.post("/netSale/queryHotSearchTerms","netsale_queryHotSearchTerms");
/*查找洗涤提示*/
app.post("/netSale/getAll4Select","netsale_getAll4Select");
/*查找材质参数*/
app.post("/netSale/queryAllBySortId4Select","netsale_queryAllBySortId4Select");
/*查找所有商品参数信息 //暂时没用*/
app.post("/netSale/queryAllGoodsParams",["netsale_getAll4Select","netsale_queryAllBySortId4Select"]);
/*保存搜索关键词*/
app.post("/netSale/saveNetSaleSearchKeys","netsale_saveNetSaleSearchKeys");
/*保存商品参数*/
app.post("/netSale/saveProductParam","netsale_saveProductParam");
/*商品描述*/
app.post("/product/saveProductDesc","netsale_saveProductDesc");
/*小编推荐*/
app.post("/product/saveNetSaleRecommend","netsale_saveNetSaleRecommend");
/*查询搭配列表*/
app.post("/collocation/selectCollocationListBySkn","netsale_selectCollocationListBySkn");
/*获取单个商品搭配信息*/
app.post("/collocation/selectCollocationById","netsale_selectCollocationById");
/*添加单个搭配*/
app.post("/collocation/insertCollocation","netsale_insertCollocation");
/*更新单个搭配*/
app.post("/collocation/updateCollocation","netsale_updateCollocation");
/*删除单个搭配*/
app.post("/collocation/delCollocationById","netsale_delCollocationById");
/*单独维护封面信息*/
app.post("/product/manageProductImg","netsale_manageProductImg");
/*小编推荐*/
app.post("/guang/article/queryArticlesBySKN","netsale_queryArticlesBySKN");
}
\ No newline at end of file
module.exports=function(app) {
/*代销变价页面渲染*/
app.get("/goods/pricechange/index","goods.price.PriceChange",function () {
this.$extend={
moduleName:'商品管理',
pageName:'代销变价'
}
});
/*列表数据*/
app.post("/goods/price/list","price_queryProductPriceList");
/*获得单个变价详情*/
app.post("/goods/getPrice","price_getProductPrice");
/*单个变价接口*/
app.post("/goods/updatePrice","price_updateProductPrice");
/*变价记录*/
app.post("/goods/queryProductPriceListBySkn","price_queryProductPriceListBySkn");
/*批量变价接口*/
app.post("/goods/batchUpdatePrice","price_batchUpdateProductPrice");
/**************************品牌合作模式页面渲染*******************************/
app.get("/goods/brandCooperation/index","goods.price.BrandCooperation",function(){
this.$extend={
moduleName:'商品管理',
pageName:'品牌合作模式设置'
}
});
/*列表数据*/
app.post("/brandCooperation/queryBrandCooperationList","price_queryBrandCooperationList");
/*修改合作模式*/
app.post("/brandCooperation/saveBrandCooperation","price_saveBrandCooperation");
}
\ No newline at end of file
module.exports=function(app) {
/*品牌货到付款限制页面路由*/
app.get("/goods/special/index","goods.specialgoods.Index",function(){
this.$extend={
moduleName:"商品管理",
pageName:"特殊商品"
}
});
/*列表数据*/
app.post("/refundExchangeAttribute/queryRefundExchangeList","specialgoods_queryRefundExchangeList");
/*编辑*/
app.post("/refundExchangeAttribute/modifyRefundExchangeStatus","specialgoods_modifyRefundExchangeStatus");
};
\ No newline at end of file
module.exports=function(app) {
/*yoho币管理页面渲染*/
app.get("/goods/yohoCoin/index","goods.yohoCoin.Index",function(){
this.$extend={
moduleName:"商品管理",
pageName:"YOHO币管理"
}
});
/*yoho币管理列表查询*/
app.post("/good/yohoCoin/queryPageList","yohoCoin_queryPageList");
/*编辑保存yoho币*/
app.post("/good/yohoCoin/set","yohoCoin_set");
/*批量上传TaskId查询*/
app.post("/yohoCoin/importResult/queryBatchImportResult","yohoCoin_queryBatchImportResult");
/*批量确认提交*/
app.post("/good/yohoCoin/insertBatch","yohoCoin_insertBatch");
/*yoho币审核页面渲染*/
app.get("/goods/yohoCoin/Audit","goods.yohoCoin.Audit",function(){
this.$extend={
moduleName:"商品管理",
pageName:"YOHO币审核"
}
});
/*yoho币审核列表查询*/
app.post("/good/yohoCoin/queryPageList4Audit","yohoCoin_queryPageList4Audit");
/*审核通过*/
app.post("/good/yohoCoin/pass","yohoCoin_pass");
/*批量审核通过*/
app.post("/good/yohoCoin/passBatch","yohoCoin_passBatch");
/*驳回*/
app.post("/good/yohoCoin/reject","yohoCoin_reject");
/*批量驳回*/
app.post("/good/yohoCoin/rejectBatch","yohoCoin_rejectBatch");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 文章分类管理
*/
module.exports=function(app) {
app.get("/guang/article/sortindex","guang.articleCategory.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "文章分类管理",
pageName: "文章分类管理"
};
});
/*文章分类管理列表数据*/
app.post("/guang/article/categoryist","articleCategoryManager_getList");
/*文章分类管理-编辑*/
app.post("/guang/article/sort/update","articleCategoryManager_updateSort");
/*文章分类管理-添加*/
app.post("/guang/article/sort/add","articleCategoryManager_addSort");
/*文章分类管理-删除*/
app.post("/guang/article/sort/del","articleCategoryManager_delSort");
}
/**
* Created by ty on 2016/6/20.
* 作者管理
*/
module.exports=function(app) {
app.get("/guang/author/index","guang.author.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "作者管理",
pageName: "作者列表"
};
});
/*作者管理列表数据*/
app.post("/guang/author/getList","authorManager_getList");
/*作者管理-添加*/
app.post("/guang/author/addAuthor","authorManager_addAuthor");
/*作者管理-编辑*/
app.post("/guang/author/updateAuthor","authorManager_updateAuthor");
/*作者管理-删除*/
app.post("/guang/author/delAuthor","authorManager_delAuthor");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 品牌关注
*/
module.exports=function(app) {
app.get("/guang/relationship/index","guang.brandConcern.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "品牌关系管理",
pageName: "品牌关系列表"
};
});
/*品牌关注 列表数据*/
app.post("/guang/relationship/getList","brandConcern_getList");
/*品牌关注-添加*/
app.post("/guang/relationship/addRel","brandConcern_addRel");
/*品牌关注列表-编辑*/
app.post("/guang/relationship/updateRel","brandConcern_updateRel");
/*品牌关注列表-删除*/
app.post("/guang/relationship/delRel","brandConcern_delRel");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 评论管理
*/
module.exports=function(app) {
app.get("/guang/comments/index","guang.comment.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "评论管理",
pageName: "评论列表"
};
});
/*评论管理列表数据*/
app.post("/guang/comment/getList","commentManager_getList");
/*评论管理-审核*/
app.post("/guang/comment/audit","commentManager_audit");
/*评论管理-获取筛选条件*/
app.post("/guang/comment/getItems","commentManager_getItems");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 资讯管理
*/
module.exports=function(app) {
/*首页*/
app.get("/guang/article/index","guang.info.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "资讯管理",
pageName: "资讯列表管理"
};
});
/*添加*/
app.get("/guang/article/contentAdd","guang.info.Edit", function () {
this.$extend = {
action:"/guang/article/addArticle",
moduleName: "文章管理",
pageName: "添加文章"
};
});
/*编辑*/
app.get("/guang/article/contentEdit/:id","guang.info.Edit", function () {
this.$extend = {
action:"/guang/article/updateArticle",
moduleName: "文章管理",
pageName: "修改文章"
};
});
/*资讯管理列表数据*/
app.post("/guang/article/list","infoManager_getList");
/*资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)*/
app.post("/guang/article/operation","infoManager_operation");
/*资讯管理-定时*/
app.post("/guang/article/timmer","infoManager_timePublish");
/*资讯管理-删除*/
app.post("/guang/article/del","infoManager_delArticle");
//================================= [下拉框调用的接口]
/*作者列表*/
app.post("/guang/article/getAuthorList","infoManager_getAuthorList");
/*所有分类*/
app.post("/guang/article/getSortList","infoManager_getSortList");
/*根据是否启用获取标签分类列表*/
app.post("/guang/tagSort/getTagItems","infoManager_getTagItems");
/*plus star 频道*/
app.post("/guang/plustarcategory/getCategoryNames","infoManager_getCategoryNames");
/*添加文章*/
app.post("/guang/article/addArticle","infoManager_addArticle");
/*更新文章*/
app.post("/guang/article/updateArticle","infoManager_updateArticle");
/*获取文章详情*/
app.post("/guang/article/getDetail","infoManager_getDetail");
/*获取标签列表*/
app.post("/guang/tags/getTags","infoManager_getTags");
/*获取文章详情*/
app.post("/guang/queryAllGoodsSort","infoManager_queryAllGoodsSort");
}
/**
* Created by ty on 2016/6/20.
* plus/Star列表
*/
module.exports=function(app) {
app.get("/guang/plustar/index","guang.plusStar.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "PlusStar管理",
pageName: "PlusStar管理"
};
});
/*Plus/Star 列表数据*/
app.post("/guang/plustar/getList","plusStarManager_getList");
/*Plus/Star列表-添加*/
app.post("/guang/plustar/addPlustar","plusStarManager_addPlustar");
/*Plus/Star列表-修改*/
app.post("/guang/plustar/updatePlustar","plusStarManager_updatePlustar");
/*Plus/Star列表-编辑*/
app.post("/guang/plustar/getDetail","plusStarManager_getDetail");
/*Plus/Star列表-删除*/
app.post("/guang/plustar/delPlustar","plusStarManager_delPlustar");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* plus/Star分类
*/
module.exports=function(app) {
app.get("/guang/plustarcategory/index","guang.plusStarCategory.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "PlusStar分类管理",
pageName: "PlusStar分类列表管理"
};
});
/*Plus/Star分类 列表数据*/
app.post("/guang/plustarcategory/getList","plusStarCategory_getList");
/*Plus/Star分类列表-添加*/
app.post("/guang/plustarcategory/addCategory","plusStarCategory_addCategory");
/*Plus/Star分类列表-编辑&开启&关闭*/
app.post("/guang/plustarcategory/updateCategory","plusStarCategory_updateCategory");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 标签管理
*/
module.exports=function(app) {
app.get("/guang/tags/index","guang.tag.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "标签管理",
pageName: "标签管理"
};
});
/*标签管理列表数据*/
app.post("/guang/tags/getList","tagManager_getList");
/*标签管理-编辑*/
app.post("/guang/tags/updateTag","tagManager_updateTag");
/*标签管理-添加*/
app.post("/guang/tags/addTag","tagManager_addTag");
/*标签管理-删除*/
app.post("/guang/tags/delTag","tagManager_delTag");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 标签分类管理
*/
module.exports=function(app) {
app.get("/guang/tags/sort","guang.tagCategory.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "标签管理",
pageName: "标签分类管理"
};
});
/*标签分类管理列表数据*/
app.post("/guang/tags/sort/list","tagCategoryManager_getList");
/*标签分类管理-编辑*/
app.post("/guang/tags/sort/update","tagCategoryManager_updateSort");
/*标签分类管理-添加*/
app.post("/guang/tags/sort/add","tagCategoryManager_addSort");
/*标签分类管理-删除*/
app.post("/guang/tags/sort/del","tagCategoryManager_delSort");
}
\ No newline at end of file
module.exports = function (app){
app.get("/operations/helpcategory/index", "help.Category", function (req,res){
this.$extend={
moduleName:"帮助管理",
pageName:"帮助分类"
}
});
//所有帮助分类列表
app.post("/operations/helpcategory/getAllHelpCategory","helpCategory_getAllHelpCategory");
//添加帮助分类
app.post("/operations/helpcategory/addCategory","helpCategory_addCategory");
//保存修改帮助分类
app.post("/operations/helpcategory/updateHelpCategory","helpCategory_updateHelpCategory");
//删除帮助分类
app.post("/operations/helpcategory/deleteHelpCategory","helpCategory_deleteHelpCategory");
//帮助分类详情
app.post("/operations/helpcategory/getCategoryListByPid","helpCategory_getCategoryListByPid");
}
module.exports = function (app){
app.get("/operations/helpcontent/index", "help.Content", function (req,res){
this.$extend={
moduleName:"帮助管理",
pageName:"帮助内容"
}
});
//帮助内容列表
app.post("/operations/helpcontent/getAllHelpContent","helpContent_getAllHelpContent");
//添加帮助内容
app.post("/operations/helpcontent/addHelpContent","helpContent_addHelpContent");
//保存编辑帮助内容
app.post("/operations/helpcontent/updateHelpContent","helpContent_updateHelpContent");
//删除帮助内容
app.post("/operations/helpcontent/deleteHelpContent","helpContent_deleteHelpContent");
//帮助内容详情
app.post("/operations/helpcontent/getHelpContentByCategoryId","helpContent_getHelpContentByCategoryId");
//二级帮助分类
app.post("/operations/helpcontent/getSecondCategoryList","helpContent_getSecondCategoryList");
//查询所有帮助分类
app.post("/operations/helpcontent/getAllHelpCategory","helpContent_getAllHelpCategory");
//查询帮助分类
app.post("/operations/helpcontent/getHelpCategory","helpContent_getHelpCategory");
}
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/***********************************品牌优惠券*************************************/
//列表页
app.get("/brandCoupons/index", "marketing.BrandCoupon.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'品牌优惠券'
}
});
//列表数据
app.post("/brandCoupon/queryList", "BrandCoupon_queryList");
//新增
app.post("/brandCoupon/add", "BrandCoupon_add");
//编辑
app.post("/brandCoupon/update", "BrandCoupon_update");
//删除
app.post("/brandCoupon/delete", "BrandCoupon_delete");
//单个
app.post("/brandCoupon/queryByParam", "BrandCoupon_queryByParam");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************优惠券管理--庞洁*************************************/
//列表页
app.get("/market/couponList/index", "marketing.CouponList.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'优惠券管理',
}
});
//优惠券列表
app.post("/coupon/queryCouponList", "CouponList_queryCouponList");
//添加页
app.get("/market/couponList/add", "marketing.CouponList.AddOrUpdate",function(){
this.$extend={
moduleName:'营销管理',
pageName:'新增优惠券',
title: "新增优惠券",
type: "add",
action: "/coupon/add"
}
});
//编辑页
app.get("/market/couponList/update/:id", "marketing.CouponList.AddOrUpdate",function(){
this.$extend={
moduleName:'营销管理',
pageName:'修改优惠券',
title: "修改优惠券",
type: "update",
action: "/coupon/update"
}
});
//单张详情
app.post("/coupon/getCouponDetailById", "CouponList_getCouponDetailById");
//新增优惠券
app.post("/coupon/add", "CouponList_addOrUpdate");
//编辑优惠券
app.post("/coupon/update", "CouponList_addOrUpdate");
//驳回
app.post("/coupon/reject", "CouponList_reject");
//通过
app.post("/coupon/approve", "CouponList_approve");
//作废
app.post("/coupon/invalid", "CouponList_invalid");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************发券管理*************************************/
//列表页
app.get("/market/couponSend/index", "marketing.CouponSend.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'发券管理'
}
});
//优惠券列表
app.post("/coupon/querySendCouponList", "CouponSend_querySendCouponList");
//单个优惠券
app.post("/coupon/getCouponDetailById", "CouponSend_getCouponDetailById");
//发券页
app.get("/market/couponSend/send/:param", "marketing.CouponSend.Send",function(){
this.$extend={
moduleName:'营销管理',
pageName:'发券'
}
});
//手工发券
app.post("/coupon/sendCoupon", "CouponSend_sendCoupon");
//文件上传重发
app.post("/couponSendInfo/sendAgainById", "CouponSend_sendAgainById");
//发放记录页
app.get("/market/couponSend/sendHistory/:param", "marketing.CouponSend.SendHistory",function(){
this.$extend={
moduleName:'营销管理',
pageName:'发放记录'
}
});
//使用记录页
app.get("/market/couponSend/useHistory/:param", "marketing.CouponSend.UseHistory",function(){
this.$extend={
moduleName:'营销管理',
pageName:'使用记录'
}
});
//查询用户券列表
app.post("/couponLogs/queryUserCouponLogsList", "CouponSend_queryUserCouponLogsList");
//查询文件发券列表
app.post("/couponSendInfo/getListByCouponId", "CouponSend_getListByCouponId");
//公开券页面
app.get("/market/couponSend/pCouponSn/:param", "marketing.CouponSend.PublicCoupon",function(){
this.$extend={
moduleName:'营销管理',
pageName:'公开券'
}
});
//公开券列表
app.post("/pCouponSn/queryCouponSnList", "CouponSend_queryCouponSnList");
//发券异常列表查询
app.post("/couponSendError/query", "CouponSend_couponSendError");
//重新请求发券
app.post("/couponSendError/retrySend", "CouponSend_retrySend");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************限购码管理*************************************/
//列表页
app.get("/market/limitcode/index", "marketing.LimitCode.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'限购码列表'
}
});
//限购码列表
app.post("/limitCode/getLimitCodeList", "LimitCode_getLimitCodeList");
//添加页
app.get("/market/limitcode/add", "marketing.LimitCode.Edit",function(){
this.$extend={
moduleName:'营销管理',
pageName:'添加限购码',
action: "/limitCode/addLimitCode",
type: "add"
}
});
//添加限购码
app.post("/limitCode/addLimitCode", "LimitCode_addLimitCode");
//检查SKN的合法性并且获得其下的所有SKU
app.post("/limitCode/checkSknValidity", "LimitCode_checkSknValidity");
//查看限购码页面渲染
app.get("/market/limitcode/info/:id", "marketing.LimitCode.Info","LimitCode_getLimitCode",function (data) {
this.$extend={
moduleName:'营销管理',
pageName:'查看限购码',
data:data.data
}
});
//查看限购码
app.post("/limitCode/getLimitCode", "LimitCode_getLimitCode");
//修改限购码页面渲染
app.get("/market/limitcode/update/:id", "marketing.LimitCode.Edit",function () {
this.$extend={
moduleName:'营销管理',
pageName:'修改限购码',
action: "/limitCode/updateLimitCode",
type: "update"
}
});
//编辑限购码页面渲染
app.get("/market/limitcode/edit/:id", "marketing.LimitCode.Edit",function () {
this.$extend={
moduleName:'营销管理',
pageName:'编辑限购码',
action: "/limitCode/updateLimitCode",
type: "edit"
}
});
//编辑限购码
app.post("/limitCode/updateLimitCode", "LimitCode_updateLimitCode");
//通过、驳回、作废限购码接口
app.post("/limitCode/auditLimitCode", "LimitCode_auditLimitCode");
//限购码管理 -> tab卡数据
app.post("/limitCode/getLimitCodeCountByStatus", "LimitCode_getLimitCodeCountByStatus");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************商品池管理*************************************/
//列表页
app.get("/market/productPool/index", "marketing.ProductPool.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'商品池管理'
}
});
//列表数据
app.post("/market/productPool/queryProductPoolPage", "ProductPool_queryProductPoolPage");
//新增
app.post("/market/productPool/addProductPoolBo", "ProductPool_addProductPoolBo");
//编辑
app.post("/market/productPool/updateProductPool", "ProductPool_updateProductPool");
//删除
app.post("/market/productPool/clearProductPool", "ProductPool_clearProductPool");
//详情列表
app.post("/market/productPool/queryProductPoolDetailPage", "ProductPool_queryProductPoolDetailPage");
//详情删除SKN
app.post("/market/productPool/deleteProductPoolDetailBo", "ProductPool_deleteProductPoolDetailBo");
//详情添加SKN
app.post("/market/productPool/addProductPoolDetailBo", "ProductPool_addProductPoolDetailBo");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************优惠码管理*************************************/
//列表页
app.get("/market/coupon/index", "marketing.PromotionCode.Index", function () {
this.$extend = {
moduleName: '营销管理',
pageName: '优惠码码列表',
createUrl: '/market/coupon/add'
}
});
//优惠码码列表
app.post("/market/coupon/getPromotion", "PromotionCode_getPromotionCodeList");
//单个优惠码
app.post("/market/coupon/getPromotionCode", "PromotionCode_getPromotionCode");
//添加页
app.get("/market/coupon/add", "marketing.PromotionCode.Edit", function () {
this.$extend = {
moduleName: '营销管理',
pageName: '添加优惠码',
action: "/market/coupon/addCode",
type: "add"
}
});
//添加限购码
app.post("/market/coupon/addCode", "PromotionCode_addPromotionCode");
//编辑限购码页面渲染
app.get("/market/coupon/update/:id", "marketing.PromotionCode.Edit","PromotionCode_getPromotionCode", function (data) {
this.$extend = {
moduleName: '营销管理',
pageName: '编辑优惠码',
action: "/market/coupon/updateCode",
type: "update",
data:data.data
}
});
//编辑限购码
app.post("/market/coupon/updateCode", "PromotionCode_updatePromotionCode");
//通过、驳回、作废限购码接口
app.post("/market/coupon/auditPromotion", "PromotionCode_auditPromotionCode");
//发放
app.post("/market/coupon/sendPromotion", "PromotionCode_getPromotionCodeSendList");
//tab卡数据
app.post("/market/coupon/getCodeCount", "PromotionCode_getPromotionCodeCountByStatus");
//查看限购码页面渲染
app.get("/market/coupon/info/:id", "marketing.PromotionCode.Edit", function () {
this.$extend = {
moduleName: '营销管理',
pageName: '优惠码详情',
type: "info"
}
});
//验证优惠码
app.post("/market/coupon/checkPromotionCode", "PromotionCode_checkPromotionCode");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************优惠券查询--李建*************************************/
//列表页
app.get("/market/queryCoupon/index", "marketing.QueryCoupon.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'优惠券查询'
}
});
//优惠券记录
app.post("/couponLogs/queryUserCouponLogsList", "QueryCoupon_queryUserCouponLogsList");
//延长优惠券有效期
app.post("/couponLogs/delayUserCoupon", "QueryCoupon_delayUserCoupon");
//手工退券
app.post("/couponLogs/cancelCouponUse", "QueryCoupon_cancelCouponUse");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************vip累计金额翻倍*************************************/
//列表页
app.get("/market/vipamount/index", "marketing.Vip.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'vip累计金额翻倍'
}
});
//列表数据
app.post("/market/vipamount/list", ["Vip_vipList","Vip_activityList"],function (Vip_vipList,Vip_activityList) {
return {
data:{
activity:Vip_activityList,
vipList:Vip_vipList
}
}
});
//添加页
app.get("/market/vipamount/add", "marketing.Vip.Add",function(){
this.$extend={
moduleName:'营销管理',
pageName:'vip累计金额翻倍'
}
});
//添加
app.post("/market/vipamount/save", "Vip_saveActivity");
};
\ No newline at end of file
/**
* Created by ty on 2016/6/21.
* 分类管理
*/
module.exports=function(app) {
/*分类管理首页*/
app.get("/operations/category/index","operations.category.Index", function () {
this.$extend = {
moduleName: "分类管理",
pageName: "分类列表管理"
}
});
/*分类管理添加页面*/
app.get("/operations/category/add","operations.category.Edit", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data,
action:"/category/addCategory",
type:"add",
moduleName: "分类管理",
pageName: "添加分类"
};
});
/*分类管理编辑页面*/
app.get("/operations/category/edit/:param","operations.category.Edit", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data,
action:"/category/updateCategory",
type:"edit",
moduleName: "分类管理",
pageName: "编辑分类"
};
console.log(response);
});
/*分类列表*/
app.post("/category/getCategoryList","category_getCategoryList");
/*更新分类状态*/
app.post("/category/updateCategoryStatus","category_updateCategoryStatus");
/*根据id获取分类对象*/
app.post("/category/getOneCategory","category_getOneCategory");
/*添加分类*/
app.post("/category/addCategory","category_addCategory");
/*修改分类*/
app.post("/category/updateCategory","category_updateCategory");
/*获取分类列表*/
app.post("/category/getCategories","category_getCategories");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 优惠券活动
*/
module.exports=function(app) {
/*优惠券活动主界面*/
app.get("/couponActivity/index","operations.couponActivity.Index", function () {
this.$extend = {
moduleName: "优惠券活动管理",
pageName: "活动列表"
}
});
/*优惠券活动编辑界面*/
app.get("/couponActivity/index/update/:id","operations.couponActivity.Edit", function () {
this.$extend = {
moduleName: "优惠券活动管理",
pageName: "编辑活动"
}
});
/*优惠券活动添加界面*/
app.get("/couponActivity/index/add","operations.couponActivity.Add", function () {
this.$extend = {
moduleName: "优惠券活动管理",
pageName: "添加活动"
}
});
/*api请求数据*/
app.post("/couponActivity/queryList","couponActivity_queryList");
/*修改优惠券活动*/
app.post("/couponActivity/update","couponActivity_update");
/*单个优惠券活动查询*/
app.post("/couponActivity/queryById","couponActivity_queryById");
/*新增优惠券活动*/
app.post("/couponActivity/add","couponActivity_add");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 发券管理
*/
module.exports=function(app) {
/*发券管理主页*/
app.get("/couponSendManager/queryList","operations.couponSend.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "发券管理"
}
});
/*发券列表*/
app.post("/couponSendManager/queryList1","couponSend_queryList");
/*新增/修改发券*/
app.post("/couponSendManager/addOrUpdate","couponSend_addOrUpdate");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/21.
* app入口管理
*/
module.exports=function(app) {
/*入口信息管理界面*/
app.get("/operations/entrance/index","operations.entrance.Index", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data,
moduleName: "运营管理",
pageName: "入口信息管理"
};
});
/*入口列表*/
app.post("/operations/entrance/selectEntranceList","entrance_selectEntranceList");
/*添加入口*/
app.post("/operations/entrance/insertEntrance","entrance_insertEntrance");
/*修改入口*/
app.post("/operations/entrance/updateEntrance","entrance_updateEntrance");
/*更改入口状态*/
app.post("/operations/entrance/publishEntrance","entrance_publishEntrance");
}
/**
* Created by ty on 2016/6/23.
* 生成多个链接
*/
module.exports=function(app) {
/*生成多个链接页面*/
app.get("/operations/link/index","operations.generateLinks.Index", function () {
this.$extend = {
moduleName: "链接管理",
pageName: "生成链接",
url: "/link/generate",
type: "complex",
notSingle: true
}
});
/*生成单个链接页面*/
app.get("/operations/link/single","operations.generateLinks.Index", "resourceManage_getUrlAction", function (response) {
this.$extend = {
moduleName: "链接管理",
pageName: "生成单一链接",
url: "/link/single",
type: "single",
isSingle: true,
data: response.data
}
});
/*生成多个链接*/
app.post("/link/generate","generateLinks_generate");
/*生成单个链接*/
app.post("/link/single","generateLinks_single");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* Top100标签
*/
module.exports=function(app) {
/*公告管理首页*/
app.get("/hotRankTag/index","operations.hotRankTag.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "Top 100标签"
}
});
/*搜索词列表*/
app.post("/hotRankTag/selectTagList","hotRankTag_selectTagList");
/*添加搜索词*/
app.post("/hotRankTag/addTag","hotRankTag_addTag");
/*修改搜索词*/
app.post("/hotRankTag/updateTag","hotRankTag_updateTag");
/*发布搜索词*/
app.post("/hotRankTag/publishTag","hotRankTag_publishTag");
/*关闭搜索词*/
app.post("/hotRankTag/closeTag","hotRankTag_closeTag");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/21.
* 热门意见管理
*/
module.exports=function(app) {
/*热门意见管理界面*/
app.get("/suggest/hotsuggest/index","operations.hotsuggest.Index", function () {
this.$extend = {
moduleName: "反馈管理",
pageName: "热门意见列表"
}
});
/*获取热门意见列表*/
app.post("/suggest/suggestHot/getSuggestHotList","hotsuggest_getSuggestHotList");
/*新增热门意见*/
app.post("/suggest/suggestHot/addSuggestHot","hotsuggest_addSuggestHot");
/*修改热门意见*/
app.post("/suggest/suggestHot/updateSuggestHot","hotsuggest_updateSuggestHot");
/*删除/取消热门意见*/
app.post("/suggest/suggestHot/deleteSuggestHot","hotsuggest_deleteSuggestHot");
/*发布/撤回热门*/
app.post("/suggest/suggestHot/publishSuggestHot","hotsuggest_publishSuggestHot");
/*批量发布热门意见*/
app.post("/suggest/suggestHot/batchPublishSuggestHot","hotsuggest_batchPublishSuggestHot");
/*根据id查询热门意见---------暂未用到*/
app.post("/suggest/suggestHot/getSuggestHotById","hotsuggest_getSuggestHotById");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/22.
* 限售商品管理
*/
module.exports=function(app) {
/*【限购商品】页面渲染*/
app.get("/limit/product/index","operations.limit.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "限购商品管理"
}
});
/*【限购商品】添加页面渲染*/
app.get("/limit/product/add","operations.limit.Edit", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "限购商品管理",
data: {
limitProductType:"1",
hotFlag:"0"
},
action: '/limitProduct/addLimitProduct',
}
});
/*【限购商品】编辑页面渲染*/
app.get("/limit/edit/:id","operations.limit.Edit","limit_getLimitProduct", function (response) {
this.$extend = {
moduleName: "运营管理",
pageName: "限购商品管理",
action: "/limitProduct/updateLimitProduct",
type: "update",
data: response.data
}
});
/*列表*/
app.post("/limitProduct/getLimitProductList","limit_getLimitProductList");
/*添加*/
app.post("/limitProduct/addLimitProduct","limit_addLimitProduct");
/*编辑*/
app.post("/limitProduct/updateLimitProduct","limit_updateLimitProduct");
/*获取各状态数量*/
app.post("/limitProduct/getCountByStatus","limit_getCountByStatus");
/*更改商品状态*/
app.post("/limitProduct/auditLimitProduct","limit_auditLimitProduct");
/*删除限购商品*/
app.post("/limitProduct/deleteLimitProduct","limit_deleteLimitProduct");
/*检查batchNo是否存在*/
app.post("/limitProduct/checkBatchNoExist","limit_checkBatchNoExist");
/*根据BatchNo检查限购码是否正确*/
app.post("/limitCode/checkLimitCodeByBatchNo","limit_checkLimitCodeByBatchNo");
/*导出*/
app.post("/limit/batch/export","limit_export");
/*检查活动是否存在*/
app.post("/DrawlineActivityRest/checkActivityIdExists","limit_checkActivityIdExists");
/*检查活动是否存在*/
app.post("/limitProduct/checkActivityIdNoExist","limit_checkActivityIdNoExist");
/*根据id获取限购商品*/
app.post("/limitProduct/checkActivityIdNoExist","limit_checkActivityIdNoExist");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 公告管理
*/
module.exports=function(app) {
/*公告管理首页*/
app.get("/operations/notice/index","operations.notice.Index", function () {
this.$extend = {
moduleName: "公告管理",
pageName: "公告管理列表"
}
});
/*列表*/
app.post("/operations/notice/getList","notice_getList");
/*添加公告*/
app.post("/operations/notice/addNotice","notice_addNotice");
/*更改公告状态*/
app.post("/operations/notice/setStatus","notice_setStatus");
/*更新公告*/
app.post("/operations/notice/updateNotice","notice_updateNotice");
/*删除公告*/
app.post("/operations/notice/delNotice","notice_delNotice");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 销售类目
*/
module.exports=function(app) {
/*销售类目主页*/
app.get("/sale/category/index","operations.salecategory.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "销售类目管理",
gridurl: '/sale/salesCategory/querySCList'
}
});
/*标签管理页面*/
app.get("/sale/category/tag/:categoryId","operations.salecategory.TagMgmt", "salecategory_querySCById", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "标签管理"
}
});
/*销售类目列表*/
app.post("/sale/salesCategory/querySCList","salecategory_querySCList");
/*根据id获取单个销售类目*/
app.post("/sale/salesCategory/querySCById","salecategory_querySCById");
/*标签管理列表数据接口*/
app.post("/sale/salesCategoryLabel/querySCLabelList","salecategory_querySCLabelList");
/*更新标签接口*/
app.post("/sale/salesCategoryLabel/updateSCLabel","salecategory_updateSCLabel");
/*更新销售类目接口*/
app.post("/sale/salesCategory/updateSC","salecategory_updateSC");
/*添加销售类目接口*/
app.post("/sale/salesCategory/addSC","salecategory_addSC");
/*开关销售类目*/
app.post("/sale/salesCategory/updateSCStatus","salecategory_updateSCStatus");
/*批量添加标签接口*/
app.post("/sale/salesCategoryLabel/addSCLabel","salecategory_addSCLabel");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 商家端app包上传
*/
module.exports=function(app) {
/*静态文件管理首页*/
app.get("/operations/shopsVersionUpdate/index","operations.shopsVersionUpdate.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "商家端app包上传"
}
});
/*获取app版本列表*/
app.post("/AppVersionRest/getAppVersionList","shopsVersionUpdate_getAppVersionList");
/*添加app版本*/
app.post("/AppVersionRest/setAppVersion","shopsVersionUpdate_setAppVersion");
/*删除app版本*/
app.post("/AppVersionRest/delAppVersion","shopsVersionUpdate_delAppVersion");
/*编辑app版本*/
app.post("/AppVersionRest/editAppVersion","shopsVersionUpdate_editAppVersion");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 静态文件管理
*/
module.exports=function(app) {
/*静态文件管理首页*/
app.get("/operations/staticFileManager/index","operations.staticFile.Index", function () {
this.$extend = {
iscreate: true,
moduleName: "运营管理",
pageName: "静态文件管理"
}
});
/*静态文件添加*/
app.post("/staticFileManage/add","staticFile_add");
/*静态文件删除*/
app.post("/staticFileManage/deleteById","staticFile_deleteById");
/*静态文件修改*/
app.post("/staticFileManage/update","staticFile_update");
/*静态文件查询*/
app.post("/staticFileManage/queryByCondition","staticFile_queryByCondition");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* 专题管理
*/
module.exports=function(app) {
/*销售类目主页*/
app.get("/runManage/subjectManage/index","operations.subject.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "专题管理"
}
});
/*活动列表*/
app.post("/runManage/subjectManage/subjectList","subject_querySpecialActivityPage");
/*添加活动*/
app.post("/runManage/subjectManage/addSubject","subject_addSpecialActivity");
/*修改活动*/
app.post("/runManage/subjectManage/modify","subject_updateByPrimaryKey");
/*删除活动*/
app.post("/runManage/subjectManage/delSubject","subject_deleteSpecialActivity");
/*dropDown 根据名称获取商品池*/
app.post("/runManage/subjectManage/queryBaseProductPoolListByName","subject_queryBaseProductPoolList");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/21.
* app意见反馈管理
*/
module.exports=function(app) {
/*意见反馈管理首页*/
app.get("/suggest/suggest/index","operations.suggest.Index", function () {
this.$extend = {
moduleName: "反馈管理",
pageName: "反馈列表"
}
});
/*列表*/
app.post("/suggest/suggest/getSuggestList","suggest_getSuggestList");
/*回复APP意见*/
app.post("/suggest/suggest/replySuggest","suggest_replySuggest");
/*设置热门/非热门接口*/
app.post("/suggest/suggest/setHotSuggest","suggest_setHotSuggest");
/*删除APP意见*/
app.post("/suggest/suggest/deleteSuggest","suggest_deleteSuggest");
/*发送APP意见*/
app.post("/suggest/suggest/publishSuggest","suggest_publishSuggest");
/*获取分类列表*/
app.post("/suggest/suggest/batchPublishSuggest","suggest_batchPublishSuggest");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/23.
* APP版本更新管理
*/
module.exports=function(app) {
/*优惠券活动主界面*/
app.get("/operations/version/index","operations.version.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "APP版本更新管理"
}
});
/*APP版本升级提醒列表*/
app.post("/operations/version/appVersionList","version_appVersionList");
/*新增APP版本提醒*/
app.post("/operations/version/addAppVersion","version_addAppVersion");
/*修改APP版本提醒*/
app.post("/operations/version/editAppVersion","version_editAppVersion");
/*改变状态*/
app.post("/operations/version/publishAppVersion","version_publishAppVersion");
}
\ No newline at end of file
/**
* Created by ty on 2016/6/20.
* 平台管理
*/
module.exports=function(app) {
/*平台管理首页*/
app.get("/resource/platform/index","resource.platformManage.Index", function () {
this.$extend = {
moduleName: "平台管理",
pageName: "平台列表"
}
});
/*平台管理列表*/
app.post("/resources/findResPlatforms","platformManage_findResPlatforms");
/*添加平台*/
app.post("/resources/addResPlatform","platformManage_addResPlatform");
/*更新平台信息*/
app.post("/resources/updateResPlatform","platformManage_updateResPlatform");
/*删除平台*/
app.post("/resources/deleteResPlatform","platformManage_deleteResPlatform");
}
/**
* Created by ty on 2016/6/20.
* 资源管理
*/
module.exports=function(app) {
/*资源管理首页*/
app.get("/resource/index/index","resource.resourceManage.Index", function () {
this.$extend = {
moduleName: "资源管理",
pageName: "资源管理"
}
});
/*资源内容管理页*/
app.get("/resource/content/index/:param","resource.resourceManage.ContentManage", "resourceManage_getUrlAction", function (response) {
this.$extend = {
data:response.data,
moduleName: "资源管理",
pageName: "资源内容管理"
};
});
/*资源管理列表*/
app.post("/resources/queryResource","resourceManage_queryResource");
/*获取资源分类列表*/
app.post("/resources/getResSorts","resourceManage_getResSorts");
/*获取平台列表*/
app.post("/resources/getResPlatforms","resourceManage_getResPlatforms");
/*添加/修改资源*/
app.post("/resources/saveResource","resourceManage_saveResource");
/*根据id删除资源位*/
app.post("/resources/deleteResourceById","resourceManage_deleteResourceById");
/*删除资源位下所有tab*/
app.post("/resources/deleteAllResourceByCode","resourceManage_deleteAllResourceByCode");
/*根据id获取资源内容*/
app.post("/resources/resContentIndex","resourceManage_resContentIndex");
/*添加资源内容*/
app.post("/resources/addResContent","resourceManage_addResContent");
/*根据id删除资源内容楼层*/
app.post("/resources/delResContent","resourceManage_delResContent");
/*复制资源内容*/
app.post("/resources/copyResContent","resourceManage_copyResContent");
/*更新预发布时间*/
app.post("/resources/updateResPublishTime","resourceManage_updateResPublishTime");
/*根据 ids 查询活动*/
app.post("/resources/querySpecialActivityByIDs","resourceManage_querySpecialActivityByIDs");
}
/**
* Created by ty on 2016/6/20.
* 资源分类管理
*/
module.exports=function(app) {
/*资源分类管理首页*/
app.get("/resource/sort/index","resource.resourceSortManage.Index", function () {
this.$extend = {
moduleName: "资源分类管理",
pageName: "资源分类列表"
}
});
/*资源分类管理列表*/
app.post("/resources/resSortIndex","resourceSortManage_resSortIndex");
/*添加资源分类*/
app.post("/resources/addResSort","resourceSortManage_addResSort");
/*修改资源分类*/
app.post("/resources/updateResSort","resourceSortManage_updateResSort");
/*删除资源分类*/
app.post("/resources/deleteResourcesSort","resourceSortManage_deleteResourcesSort");
}
/**
* Created by yoho on 2016/6/20.
* 搜索词管理
*/
module.exports = function (app) {
/*************************************搜索词管理*************************************/
//列表页
app.get("/operations/terms/index", "searchWords.SearchWords.Index",function(){
this.$extend={
filter: true
}
});
//获取所有搜索词
app.post("/operation/terms/searchWordsList", "searchWords_querySearchWords");
//添加搜索词信息
app.post("/operations/terms/add", "searchWords_addSearchWords");
//编辑搜索词信息
app.post("/operations/terms/modify", "searchWords_updateSearchWords");
/*************************************品牌热搜词*************************************/
//列表页
app.get("/hotSearchBrand/index", "searchWords.HotBrand.Index",function(){
this.$extend={
moduleName:'搜索词管理',
pageName:'品牌热搜词',
filter: true
}
});
//获取所有搜索词
app.post("/hotSearchBrand/queryHotBrandList", "searchWords_queryHotBrandList");
//添加搜索词信息
app.post("/hotSearchBrand/addHotBrand", "searchWords_addHotBrand");
//编辑搜索词信息
app.post("/hotSearchBrand/updateHotBrand", "searchWords_updateHotBrand");
//删除搜索词信息
app.post("/hotSearchBrand/delHotBrand", "searchWords_delHotBrand");
//查询单个搜索词信息
app.post("/hotSearchBrand/queryHotBrand", "searchWords_queryHotBrand");
};
\ No newline at end of file
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************拍摄模特*************************************/
//列表页
app.get("/shotManage/model/index", "shootMeter.Model.Index",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'拍摄模特管理',
type:1,
typeName:"拍摄模特"
}
});
//获取所有拍摄模特的信息
app.post("/shotManage/model/getAllModels", "shootMeter_queryModelList");
//添加模特信息
app.post("/shotManage/model/addModel", "shootMeter_addModel");
//编辑模特信息
app.post("/shotManage/model/updateModel", "shootMeter_updateModel");
//删除模特信息
app.post("/shotManage/model/delModel", "shootMeter_delModel");
/*************************************试穿模特*************************************/
//列表页
app.get("/meterManage/tryModel/index", "shootMeter.TryModel.Index",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'试穿模特管理',
type: 2,
typeName:'试穿模特管理'
}
});
//获取所有试穿模特的信息
app.post("/meterManage/tryModel/index1", "shootMeter_queryModelList");
//添加模特信息
app.post("/meterManage/tryModel/addModel", "shootMeter_addModel");
//编辑模特信息
app.post("/meterManage/tryModel/updateModel", "shootMeter_updateModel");
//删除模特信息
app.post("/meterManage/tryModel/delModel", "shootMeter_delModel");
/*************************************尺码测量管理*************************************/
//列表页
app.get("/meterManage/meterSize/index", "shootMeter.MeterSize.Index",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'尺码测量管理'
}
});
//获取所有尺码测量数据
app.post("/meterManage/productSize/queryProdSizeList", "shootMeter_queryProdSizeList");
//添加尺码测量数据界面
app.get("/meterManage/meterSize/add", "shootMeter.MeterSize.Add",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'添加尺码信息'
}
});
//添加尺码测量数据
app.post("/meterManage/productSize/saveProdSizeInfo", "shootMeter_saveProdSizeInfo");
//编辑品牌选项
app.post("/meterManage/brand/getSelectItems", "shootMeter_getSelectItems");
/*************************************试穿信息管理*************************************/
//列表页
app.get("/meterManage/tryInfo/index", "shootMeter.TryInfo.Index",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'试穿信息管理'
}
});
//上传文件
app.get("/meterManage/tryInfo/batch", "shootMeter.TryInfo.Batch",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'上传文件'
}
});
//获取所有试穿信息
app.post("/meterManage/tryInfo/index2", "shootMeter_queryProdExtraList");
//获取单个skn对应的试穿信息
app.post("/meterManage/tryInfo/info1", "shootMeter_queryProdExtraInfo");
//添加试穿信息
app.post("/meterManage/tryInfo/add", "shootMeter_saveProdExtraInfo");
/*************************************拍摄要求管理*************************************/
//列表页
app.get("/shotManage/shotRequire/index", "shootMeter.ShootRequire.Index",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'拍摄要求管理'
}
});
//获取所有拍摄要求信息
app.post("/shotManage/shotRequire/index1", "shootMeter_queryShootRequireList");
//保存拍摄要求
app.post("/shotManage/shotRequire/add", "shootMeter_saveShootRequire");
//修改、删除拍摄要求
app.post("/shotManage/shotRequire/update", "shootMeter_saveShootRequire");
/*************************************产品图片管理*************************************/
//列表页
app.get("/shotManage/proPhoto/index", "shootMeter.ProPhoto.Index",function(){
this.$extend={
moduleName:'拍摄复尺',
pageName:'产品图片管理'
}
});
//产品图片数据列表
app.post("/shotManage/proPhoto/index2", "shootMeter_queryProductPhotoList");
//添加产品图片
app.post("/shotManage/proPhoto/add", "shootMeter_addProductBatchPhoto");
};
\ No newline at end of file
module.exports = function (app){
app.get("/supplier/store/index", "shop.Index", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺创建",
add:true,
gridurl:'/supplier/shop/indexPage',
authority:'{"btn":false,"info":"info","create":true,"operationStatus":1,"checkStatusArr":"100,200,900"}'
};
});
app.get("/supplier/store/add", "shop.Edit", function () {
this.$extend={
moduleName:"店铺管理",
pageName:"店铺创建",
editTitle:"创建新店铺",
action:'/store/add',
data:{shopId:0}
}
});
app.get("/supplier/store/update/:shopsId", "shop.Edit", "shopAdd_getShopDetailById", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺编辑",
editTitle:"编辑店铺信息",
action:'/store/update',
data:rs.data
}
});
app.get("/supplier/store/info/:shopsId", "shop.Info", "shopAdd_getShopDetailById", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺详情",
data:rs.data
}
});
//添加店铺
app.post("/store/add","shopAdd_addShops");
}
module.exports = function (app){
app.get("/supplier/storeadmin/index", "shop.Administrator", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"管理员列表"
}
});
app.get("/supplier/store/adminupdate/:id", "shop.Administrator");
app.get("/supplier/storeadmin/adminAdd", "shop.Administrator");
//店铺管理员列表
app.post("/supplier/storeadmin/indexPage","shopAdministrator_getShopsAdminList");
//删除店铺管理员
app.post("/supplier/storeadmin/delete","shopAdministrator_delAdminRelation");
//添加店铺管理员
app.post("/supplier/storeadmin/addguanxi","shopAdministrator_addAdminRelation");
//保存修改店铺管理员
app.post("/supplier/storeadmin/updateguanxi","shopAdministrator_updateAdminRalation");
//根据品牌选择供应商
app.post("/supplier/storeadmin/supplierlist","shopAdministrator_selectSupplierByBrandId");
}
\ No newline at end of file
module.exports = function (app){
app.get("/supplier/check/index", "shop.Index", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺审核管理",
basicTab:true,
gridurl:'/supplier/store/indexPage',
authority:'{"btn":false,"info":"info2","operationStatus":0,"checkStatusArr":"200"}'
}
});
app.get("/supplier/store/info2/:shopsId", "shop.Info", "shopAudit_getLastCheckShopInfoById", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺详情",
btn:true,
data:rs.data
}
});
//审核通过
app.post("/Shops/ShopsRest/checkShopPass","shopAudit_checkShopPass");
//驳回
app.post("/Shops/ShopsRest/checkReject","shopAudit_checkReject");
//店铺装修审核列表
app.post("/supplier/store/ajax/shenhezx","shopAudit_findAuditShopsDecorator");
//店铺装修审核
app.post("/shop/ShopsDecoratorRest/auditShopsDecorator","shopAudit_auditShopsDecorator");
}
\ No newline at end of file
module.exports = function (app) {
app.get("/supplier/shop/decoration", "shop.DecorationList", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺装修管理"
};
});
app.get("/supplier/store/decorationDetail/:shopsId/:shopType/:shopsType/:id/", "shop.Decoration");
//店铺列表
app.post("/shop/ShopsDecoratorRest/findShopsDecorator","shopDecoration_findShopsDecorator");
//关店
app.post("/supplier/store/closeShops","shopDecoration_closeShops");
//开店
app.post("/supplier/store/openShops","shopDecoration_openShops");
//店铺装修详情
app.post("/shop/ShopsDecoratorRest/findShopsDecoratorDetail","shopDecoration_findShopsDecoratorDetail");
//店铺装修保存
app.post("/shop/ShopsDecoratorRest/saveShopsDecorator","shopDecoration_saveShopsDecorator");
//热销
app.post("/shop/ShopsDecoratorRest/findHotProductList","shopDecoration_findHotProductList");
//最新
app.post("/shop/ShopsDecoratorRest/findNewProductList","shopDecoration_findNewProductList");
}
\ No newline at end of file
module.exports = function (app){
app.get("/supplier/store/examine", "shop.Index", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺信息管理",
gridurl:'/supplier/store/indexPage',
authority:'{"btn":true,"info":"info3","operationStatus":2,"checkStatusArr":"200,300,900"}'
}
});
app.get("/supplier/store/info3/:shopsId", "shop.Info", "shopAdd_getShopDetailById", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺详情",
data:rs.data
}
});
//店铺列表(公共)
app.post("/supplier/store/indexPage","shopInfo_getShopList");
//店铺编辑修改保存(公共)
app.post("/store/update","shopInfo_updateShops");
}
module.exports = function (app){
app.get("/supplier/supplier/index", "supplier.Index", function (req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"创建供应商",
iscreate:true,
bottons:'{"columnsHidOper":true,"columnsHidisFr":true}',
gridurl:'/supplier/create/getCreateSupplierList',
searchStatus:[
{name:"暂存",value:"100"},
{name:"审核中",value:"200"},
{name:"驳回",value:"900"}
],
searchSort:true
}
});
app.get("/supplier/add", "supplier.Edit", function (req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"添加供应商",
action:'/brand/supplier/add',
data:{},
add:true,
update:true
}
});
app.get("/supplier/update/:id", "supplier.Edit", "supplierList_getSupplier", function (rs,req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"修改供应商",
action:'/brand/action/update',
update:true,
data:rs.data
}
});
//创建供应商列表
app.post("/supplier/create/getCreateSupplierList","supplierAdd_getCreateSupplierList");
//新建供应商保存
app.post("/brand/supplier/add","supplierAdd_addSupplier");
}
module.exports = function (app){
app.get("/supplier/supplier/auditlist", "supplier.Index", function (req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"供应商审核",
bottons:'{"edit":true,"columnsHidisFr":true}',
gridurl:'/supplier/create/getAuditSupplierList'
}
});
app.get("/supplier/infoopt/:id", "supplier.Info", "supplierAudit_getSupplierCheck", function (rs,req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"供应商审核详情",
edit:true,
data:rs.data
}
});
//供应商审核列表
app.post("/supplier/create/getAuditSupplierList","supplierAudit_getAuditSupplierList");
//审核,冻结供应商
app.post("/supplier/index/status","supplierAudit_updateSupplier");
}
module.exports = function (app){
app.get("/supplier/supplier/managelist", "supplier.Index", function (req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"供应商列表",
bottons:'{"resetlock":true,"updatecheck":true}',
gridurl:'/supplier/create/getManageSupplierList',
searchStatus:[
{name:"通过",value:"300"},
{name:"驳回",value:"900"},
{name:"审核中",value:"200"}
],
searchIsfreez:true
}
});
app.get("/supplier/updatecheck/:id", "supplier.Edit", "supplierList_getSupplier", function (rs,req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"修改供应商",
action:'/brand/action/update',
updatecheck:true,
data:rs.data
}
});
app.get("/supplier/info/:id", "supplier.Info", "supplierList_getSupplier", function (rs,req,res){
this.$extend={
moduleName:"供应商管理",
pageName:"供应商详情",
data:rs.data
}
});
//供应商列表列表
app.post("/supplier/create/getManageSupplierList","supplierList_getManageSupplierList");
//修改保存供应商2
app.post("/brand/action/update","supplierList_updateSupplier");
}
module.exports=function(Filter){
Filter.define("/!(login)", ["get","post"], "common_gray", function (gray, req, res, next){
if(gray.code==200){
next();
}else{
res.redirect('/login');
}
});
};
'use strict';
var fs = require('fs');
var path = require('path');
var session = require('express-session');
var Redis = require('connect-redis')(session);
var config = JSON.parse(fs.readFileSync('./package.json').toString());
var grayroute = require("./mid/grayrouter");
/*session 配置*/
var options = {
secret: 'yohobuy.portal', //session配置
cookie: {secure: false, maxAge: 3600000},
resave: false,
saveUninitialized: true
};
/*老平台接口 配置*/
var oldSerDomain = 'http://serve.yohobuy.com';
var Iaccount = {
WEBSITE: 1,
login: oldSerDomain + '/service/account/v1/Profile/login',
getResourceByPid: oldSerDomain + '/service/account/v1/Profile/getMenuByPid',
getAllResByWebsite: oldSerDomain + '/service/setting/v1/menu/getAllMenu',
changeShops: 'http://shops.yohobuy.com/index/ajaxshop',
isUsedMenuAuth: oldSerDomain + '/service/account/v1/profile/authPath',
allRight: oldSerDomain + '/service/setting/v1/action/getAllAction',
getShopList: '{{domain}}/ShopsRest/queryShopsByAdminPid',
// 灰度代理
url: 'http://admin.portal.yohobuy.com',
sessionKeep: '/account/profile/display',
timeout: 30000
};
/*框架配置*/
var apiCofig = {
//root:__dirname,
EnvConst:{
domain:"http://192.168.102.210:8088/platform",
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
system:Iaccount
},
apps:path.join(__dirname,"apps"),
port: 30012,
log:{
consoles:['log', 'info', 'warn', 'error'],
src:path.join(__dirname,"..","logs")
},
mock:false,
baseUrl:'/',
static: {name:"static",value: '../dist/'+config.name+'/'+ config.version},
MVC: {
//开发环境
Interfacer:path.join(__dirname,"apps/0/interfaces/1.js").replace(/0|1/g,'*'),
Controller:path.join(__dirname,"apps/0/controllers/1.js").replace(/0|1/g,'*'),
filters: path.join(__dirname, "filters.js"),
views: path.resolve(__dirname,"apps", "0", "views/1")
},
useToEntry:function(app){
// if(process.env.NODE_ENV!="coding"&&process.env.NODE_ENV!=="test"){
// options.store=new Redis({
// port: 6379,
// host: 'localhost'
// });
// }
app.use(session(options));
},
useToOuter:function(app,controllers){
app.use(grayroute(controllers));
}
};
console.log("环境:"+process.env.NODE_ENV);
if(process.env.NODE_ENV!=='development'){
apiCofig.log.src="/Data/logs/node/yohobuy-portal-log/"
}
/*服务器环境*/
if(process.env.NODE_ENV!="coding"){
console.log("服务器环境");
apiCofig.MVC={
Interfacer:path.join(__dirname,"interfaces/0.js").replace(/0/g,'*'),
Controller:path.join(__dirname,"controllers/0.js").replace(/0/g,'*'),
filters: path.join(__dirname, "filters.js"),
views: path.resolve(__dirname,"views", "0", "1")
}
}
/*线下测试环境*/
if(process.env.NODE_ENV==="test211"){
apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform";
apiCofig.EnvConst.yohoSearch="http://192.168.102.224:8080/yohosearch";
}
/*腾讯云*/
if(process.env.NODE_ENV==="test"){
apiCofig.EnvConst.domain="http://10.66.100.6:8088/platform";
apiCofig.EnvConst.yohoSearch="http://10.66.100.4:8080/yohosearch";
}
/**/
if(process.env.NODE_ENV==="production"){
apiCofig.EnvConst.domain="http://172.31.23.161:8088/platform";
apiCofig.EnvConst.yohoSearch="http://search.yohoops.org/yohosearch";
}
module.exports = require('./libs/App')(apiCofig);
\ No newline at end of file
module.exports={
namespace:"shareOrderAudit",
apis:{
shareOrderList:{
title:"晒单列表",
url:"/shareOrder/shareOrderList",
params:[
{name: 'status', type: 'String'},
{name: 'recomReward', type: 'String'},
{name: 'hasImage', type: 'String'},
{name: 'beginTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'uid', type: 'String'},
{name: 'productName', type: 'String'},
{name: 'productSkn', type: 'String'},
{name: 'orderCode', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
queryShareOrderNum:{
title:"查询晒单号",
url:"/shareOrder/queryShareOrderNum",
params:[
{name: 'orderCode', type: 'Number'},
{name: 'productId', type: 'String'},
{name: 'uid', type: 'Number'}
]
},
aud:{
title:"审核通过、驳回",
url:"/shareOrder/aud",
params:[
{name: 'commentId', type: 'Number'},
{name: 'result', type: 'String'},
{name: 'uid', type: 'String'}
]
},
recommend:{
title:"推荐",
url:"/shareOrder/recommend",
params:[
{name: 'commentId', type: 'Number'},
{name: 'recomReward', type: 'String'},
{name: 'uid', type: 'String'}
]
},
}
}
\ No newline at end of file
module.exports= {
namespace: "activity",
apis: {
getDrawlineActivityList:{
title:"抽奖活动列表",
url:"/DrawlineActivityRest/getDrawlineActivityList",
params:[
{name: 'activityName', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'page', type: 'Number'}
]
},
getDrawlineActivityDetail:{
title:"抽奖活动详情",
url:"/DrawlineActivityRest/getDrawlineActivityDetail",
params:[
{name:"activityId",type:"Number"}
]
},
getPrizeDetailInfo:{
title:"中奖情况",
url:"/DrawlineActivityRest/getPrizeDetailInfo",
params:[
{name:"activityId",type:"Number"}
]
},
closeActivity:{
title:"关闭活动",
url:"/DrawlineActivityRest/closeActivity",
params:[
{name:"activityId",type:"Number"}
]
},
openActivity:{
title:"开启活动",
url:"/DrawlineActivityRest/openActivity",
params:[
{name:"activityId",type:"Number"}
]
},
addDrawlineActivity:{
title:"新增抽签活动",
url:"/DrawlineActivityRest/addDrawlineActivity",
params:[
{name: 'activityName',type: 'string'},
{name: 'beginTimeStr',type: 'string'},
{name: 'endTimeStr',type: 'string'},
{name: 'topBanner',type: 'string'},
{name: 'backgroundStyle',type: 'string'},
{name: 'activityDesc',type: 'string'},
{name: 'prizeList',type: 'string'},
{name: 'numberLimit',type: 'number'}
]
},
updateDrawlineActivity:{
title:"保存编辑抽签活动",
url:"/DrawlineActivityRest/updateDrawlineActivity",
params:[
{name: 'activityId',type: 'Number'},
{name: 'activityName',type: 'string'},
{name: 'beginTimeStr',type: 'string'},
{name: 'endTimeStr',type: 'string'},
{name: 'topBanner',type: 'string'},
{name: 'backgroundStyle',type: 'string'},
{name: 'activityDesc',type: 'string'},
{name: 'prizeList',type: 'string'},
{name: 'status',type: 'Number'},
{name: 'numberLimit',type: 'number'}
]
},
luckyUserDraw:{
title:"手动开奖",
url:"/DrawlineActivityRest/luckyUserDraw",
params:[
{name: 'activityId', type:"number"}
]
},
deleteDrawlineActivity:{
title:"删除抽奖活动",
url:"/DrawlineActivityRest/deleteDrawlineActivity",
params:[
{name: 'activityId', type:"number"}
]
},
}
}
\ No newline at end of file
module.exports={
namespace:"brandmodel",
apis:{
queryAll:{
title:'初始化列表 & 筛选',
url: '/brandSeries/queryAll',
params: [
{name: 'seriesName', type: 'String'},
{name: 'shopsId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
add:{
title:'增加',
url: '/brandSeries/add',
params:[
{name: 'seriesName', type: 'String'},
{name: 'shopsId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'seriesBanner', type: 'String'}
]
},
update:{
title:'修改',
url: '/brandSeries/update',
params:[
{name: 'id', type: 'Number'},
{name: 'seriesName', type: 'String'},
{name: 'shopsId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'seriesBanner', type: 'String'}
]
},
close:{
title:'关闭',
url: '/brandSeries/close',
params:[
{name: 'id', type: 'Number'},
{name: 'type', type: 'Number'}
]
},
open:{
title:'开启',
url: '/brandSeries/open',
params:[
{name: 'id', type: 'Number'},
{name: 'type', type: 'Number'}
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"catesize",
apis:{
querySizeListBySortId:{
title:'querySizeListBySortId',
url: '/product/querySizeListBySortId',
params: [
{name: "sortId", type: "number"}
]
},
addSortSize:{
title:'添加尺码接口【验证通过】',
url: '/product/addSortSize',
params: [
{name: "sortId", type: "number"},
{name: "sizeId", type: "number"},
{name: "orderBy", type: "number"}
]
},
deleteSortSize:{
title:'删除单个品类尺码接口【待验证】',
url: '/product/deleteSortSize',
params: [
{name: "sortId", type: "number"},
{name: "sizeId", type: "number"}
]
},
updateSortSize:{
title:'修改品类尺码排序接口',
url: '/product/updateSortSize',
params: [
{name: "sortId", type: "number"},
{name: "sizeId", type: "number"},
{name: "orderBy", type: "number"}
]
},
/**********************品类尺码属性管理*****************************/
queryList:{
title:'获取品类关联尺码属性列表【验证通过】',
url: '/sortAttribute/queryList',
params: [
{name: "page", type: "number"},
{name: "size", type: "number"},
{name: "sortId", type: "number"}
]
},
add:{
title:'添加品类关联尺码属性接口【待验证】',
url: '/sortAttribute/add',
params: [
{name: "sortId", type: "number"},
{name: "attributeId", type: "number"},
{name: "orderBy", type: "number"}
]
},
delete:{
title:'删除品类关联尺码属性接口【待验证】',
url: '/sortAttribute/delete',
params: [
{name: "sortId", type: "number"},
{name: "attributeId", type: "number"}
]
},
updateOrderBy:{
title:'修改品类关联尺码属性接口【待验证】',
url: '/sortAttribute/updateOrderBy',
params: [
{name: "sortId", type: "number"},
{name: "attributeId", type: "number"},
{name: "orderBy", type: "number"}
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"color",
apis:{
queryProductColors:{
title:'获取颜色列表',
url: '/productColor/queryProductColors'
},
queryProductColor:{
title:'获取单个颜色',
url:"/productColor/queryProductColor",
params:[
{name: 'param', type: 'Number'}//,
// {name: 'id', type: 'Number'}
]
},
addProductColor:{
title:'新增颜色',
url:"/productColor/addProductColor",
params:[
{name: 'colorName', type: 'String'},
{name: 'colorCode', type: 'String'},
{name: 'colorValue', type: 'String'}
]
},
updateProductColor:{
title:'修改颜色',
url:"/productColor/updateProductColor",
params:[
{name: 'id', type: 'Number'},
{name: 'colorName', type: 'String'},
{name: 'colorCode', type: 'String'},
{name: 'colorValue', type: 'String'}
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"porattr",
apis:{
queryProductSortListByConf:{
title:'产品属性',
url:'/product/queryProductSortListByConf',
params:{
status:{type:String,default:1}
}
},
addProductAttribute:{
title:'添加产品属性ajax',
url: '/product/addProductAttribute',
params: [
{name: 'attributeName', type: 'String'},
{name: 'saleType', type: 'Number'},
{name: 'inputType', type: 'String'},
{name: 'attributeType', type: 'String'},
{name: 'isMust', type: 'String'},
{name: 'isSearch', type: 'String'},
{name: 'maxValueLen', type: 'Number'},
{name: 'isAllowAlias', type: 'String'},
{name: 'orderBy', type: 'Number'},
{name: 'state', type: 'Number'},
{name: 'remark', type: 'String'},
{name: 'attributeValues', type: 'String'},
{name: 'displayPosition', type: 'Number'},
{name: 'categoryId', type: 'Number'}
]
},
updateProductAttribute:{
title:'更新产品属性ajax',
url: '/product/updateProductAttribute',
params: [
{name: 'attributeName', type: 'String'},
{name: 'saleType', type: 'Number'},
{name: 'inputType', type: 'String'},
{name: 'attributeType', type: 'String'},
{name: 'isMust', type: 'String'},
{name: 'isSearch', type: 'String'},
{name: 'maxValueLen', type: 'Number'},
{name: 'isAllowAlias', type: 'String'},
{name: 'orderBy', type: 'Number'},
{name: 'state', type: 'Number'},
{name: 'remark', type: 'String'},
{name: 'attributeValues', type: 'String'},
{name: 'displayPosition', type: 'Number'},
{name: 'attributeId', type: 'Number'},
{name: 'categoryId', type: 'Number'}
]
},
queryProductAttributeList:{
title:'根据类目ID ajax查询属性列表',
url: '/product/queryProductAttributeList',
params: [
{name: 'categoryId', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
getProductAttribute:{
title:'ajax查询属性的详细信息',
url: '/product/getProductAttribute',
params: [
{name: 'attributeId', type: 'Number'}
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"sizeattribute",
apis:{
querySizeAttributeList:{
title:'分页列表数据',
url: '/product/querySizeAttributeList', //接口的url
params:[
{name: 'page', type: 'Number', def: '1'}, //页码
{name: 'size', type: 'Number', def : '10'} //每页条数
]
},
addSizeAttribute:{
title:'添加尺码属性',
url: '/product/addSizeAttribute', //接口的url
params:[
{name: 'attributeName', type: 'String'} //名称
]
},
updateSizeAttribute:{
title:'修改尺码属性',
url: '/product/updateSizeAttribute', //接口的url
params:[
{name: 'id', type: 'Number'}, //id
{name: 'attributeName', type: 'String'} //名称
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"sizelibrary",
apis:{
querySizeList:{
title:'产品管理【尺寸】页面分页渲染',
url:'/product/querySizeList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number',def:10}
]
},
getSize:{
title:'获取单个尺码',
url:"/product/getSize",
params:[
{name: 'id', type: 'Number'}
]
},
addSize:{
title:'新增尺码',
url:"/product/addSize",
params:[
{name: 'sizeName', type: 'String'}
]
},
updateSize:{
title:'修改尺码',
url:"/product/updateSize",
params:[
{name: 'id', type: 'Number'},
{name: 'sizeName', type: 'String'}
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"brand",
apis:{
index:{
title:"品牌管理列表",
url:"/erpproduct/brands/index",
params:[
{name: 'brandId',type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'brandLevel',type: 'string'},
{name: 'startTime',type: 'string'},
{name: 'endTime',type: 'string'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'}
]
},
getBrandDetail:{
title:"品牌详情内容",
url:"/erpproduct/brands/getBrandDetail",
params:[
{name: 'brandId', type: 'String'}
]
},
editBrand:{
title:"保存修改品牌",
url:"/erpproduct/brands/editBrand",
params:[
{name: 'id',type: 'Number'},
{name: 'status',type: 'Number'},
{name: 'brandName',type: 'string'},
{name: 'brandNameEn',type: 'string'},
{name: 'brandDomain',type: 'string'},
{name: 'brandIco',type: 'string'},
{name: 'brandLevel',type: 'string'},
{name: 'promotionLevel',type: 'Number'},
{name: 'mainCategory',type: 'Number'},
{name: 'brandHeadstream',type: 'Number'},
{name: 'brandTypes',type: 'Number'},
{name: 'brandUrl',type: 'string'},
{name: 'brandIntro',type: 'string'},
{name: 'brandOutline',type: 'string'},
{name: 'brandFounder',type: 'string'},
{name: 'brandStyle',type: 'string'},
{name: 'brandNature',type: 'Number'},
{name: 'brandTonality',type: 'string'}
]
},
addBrand:{
title:"添加品牌",
url:"/erpproduct/brands/addBrand",
params:[
{name: 'brandName',type: 'string'},
{name: 'brandNameEn',type: 'string'},
{name: 'brandDomain',type: 'string'},
{name: 'brandIco',type: 'string'},
{name: 'brandLevel',type: 'string'},
{name: 'promotionLevel',type: 'Number'},
{name: 'mainCategory',type: 'Number'},
{name: 'brandHeadstream',type: 'Number'},
{name: 'brandTypes',type: 'Number'},
{name: 'brandUrl',type: 'string'},
{name: 'brandIntro',type: 'string'},
{name: 'brandOutline',type: 'string'},
{name: 'brandFounder',type: 'string'},
{name: 'brandStyle',type: 'string'},
{name: 'brandNature',type: 'Number'},
{name: 'brandTonality',type: 'string'}
]
}
}
}
module.exports={
namespace:"category",
apis:{
queryAllProductSortList:{
title:'获取所有品类',
url: '/product/queryAllProductSortList',
},
addProductSort:{
title:'商品管理>【添加品类】ajax请求接口',
url: '/product/addProductSort',
params: [
{name: 'sortName', type: 'String'},
{name: 'sortInitials', type: 'String'},
{name:'firstSortId', type: 'Number'},
{name:'secondSortId', type:'Number'},
{name:'threeSortId', type:'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
getProductSort:{
title:'获取商品类目',
url:'/product/getProductSort',
params: [
{name: 'param', type: 'Number'}
]
},
updateProductSort:{
title:'更新商品类目',
url: '/product/updateProductSort',
params: [
{name: 'id', type: 'Number'},
{name: 'sortName', type: 'String'},
{name: 'sortInitials', type: 'String'},
{name:'firstSortId', type: 'Number'},
{name:'secondSortId', type:'Number'},
{name:'threeSortId', type:'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
publishProductSort:{
title:'publishProductSort',
url: '/product/publishProductSort',
params: [
{name: 'param', type: 'Number'}
]
},
closeProductSort:{
title:'closeProductSort',
url: '/product/closeProductSort',
params: [
{name: 'param', type: 'Number'}
]
}
}
}
\ No newline at end of file
var request = require('request');
var _ = require('lodash');
var fs = require('fs');
var Iaccount = global.Register.system;
var Utils = {
createrMenus: function (data) {
var menu = [];
for (var key in data) {
var v = data[key];
var item = {
title: v.menu_name,
}
if (v.parent_id === "0") {
item.parent = 'menu-template';
var itemSubs = [];
_.forEach(v.sub, function (val) {
var sub = {
title: val.menu_name,
href: val.menu_url,
icon: 'list-alt'
}
itemSubs.push(sub);
});
item.menu = itemSubs;
}
menu.push(item);
}
return menu;
}
}
module.exports = {
namespace: "common",
apis: {
Ilogin: {
title:'登录接口',
url: Iaccount.login,
form: '["{{user}}","{{password}}",{{website}}]',
params: {
user: { type: String },
password: { type: String },
website: {type:Number,default: Iaccount.WEBSITE}
}
},
getResourceByPid: {
title:'菜单接口',
url: Iaccount.getResourceByPid,
form: '[{{pid}},{{role_id}},{{website}}]',
params: {
pid: { type: Number },
role_id: { type: Number },
website: { type: Number, default: Iaccount.WEBSITE }
}
},
allRight: {
title: '获取权限',
url: Iaccount.allRight,
form: '[false]'
},
sessionAsync: {
title:'与老系统session同步',
url: Iaccount.url + '/account/login/sessions',
outobj: "response",
form: {'account':'{{user}}','password':'{{password}}','refer': '{{refer}}'},
params: {
user: { type: String },
password: { type: String },
refer:{type:String,default:'%2Faccount%2Fprofile%2Fdisplay'}
}
},
login: function (req, callback, common) {
var userInfo = {},result = { code: 400, message: "登录失败" },isSuccess=false;
var user = req.body.user;
var password = req.body.password;
var errcallback = function (err) {
return callback(null, result);
}
common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) {
var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"];
userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]};
allRes.data.forEach(function (data) {
if (data.platform_id == Iaccount.WEBSITE) {
userInfo.right[data.path] = true;
}
});
common.getResourceByPid(userData.pid, userData.role_id).done(function (getRRes) {
userInfo.menu = Utils.createrMenus(getRRes.data);
req.session.user = userInfo;
if (cookie && cookie.length > 0) {
req.session.gray = cookie[0];
console.log("req.session.gray",cookie);
result = { code: 200, message: "登录成功" };
}
return callback(null, result);
},errcallback);
}, errcallback);
},
isUsedMenuAuth:{
title:'检查有没有权限',
url:Iaccount.isUsedMenuAuth,
form:'[{{pid}},{{role_id}},"{{path}}","","",' + Iaccount.WEBSITE + ']',
params:{
pid:{type:Number},
role_id:{type:Number},
path:{type:String}
}
},
gray: function (req, callback,common) {
var result = { code: 201, message: "没有权限" };
if (req.session && req.session.user) {
var user = req.session.user;
var path = req.route?req.route.path[0]:req.originalUrl.replace(/\?.+/, '');
req._yoheaders = {
'x-user-id': user.auth.pid,
'x-user-name': user.auth.account,
'x-site-type': Iaccount.WEBSITE,
'x-client-ip': req.ip
};
if (path && user.right[path]) {
common.isUsedMenuAuth(user.auth.pid,user.auth.role_id,path).done(function(isURes){
result = { code: 200, message: "具有权限" };
return callback(null, result);
},function(error){
return callback(error, result);
});
} else {
result = { code: 200, message: "不受权限控制" };
return callback(null, result);
}
} else {
return callback(null, result);
}
}
}
}
\ No newline at end of file
module.exports={
namespace:"select",
apis:{
getSupplierListByIdName:{
title:'getSupplierListByIdName',
url: '/supplier/supplier/getSupplierListByIdName',
params: [
{name: "idName", type: "String", default: 1}
]
},
getBrandNames:{
title:'getBrandNames',
url: '/erpproduct/brands/getBrandNames',
params: [
{name: 'idName', type: 'String'},
{name: 'status', type: 'Number'}
]
},
getUsersByIdentity:{
title:'',
url: "/ShopsAdminRest/getUsersByIdentity",
params: [
{name: "identity", type: "Number"},
{name: "shopsId", type: "Number"}
]
},
querySizeAttributesByName:{
title:'',
url: '/product/querySizeAttributesByName',
params: [
{name: "idName", type: "String"},
{name: "sortId", type: "Number"}
]
},
querySizeListBySortId4Html:{
title:'',
url: '/product/querySizeListBySortId4Html',
params: [
{name: "idName", type: "String"},
{name: "sortId", type: "Number"}
]
},
querySizeByNameForSelect:{
title:'尺码模糊查询【验证通过】',
url: '/product/querySizeByNameForSelect',
params: [
{name: "idName", type: "String"},
{name: "sortId", type: "Number"}
]
},
queryAllBrands:{
title:'查询品牌列表接口',
url: '/erpproduct/brands/queryAllBrands',
params: [
{name: 'idName', type: 'String'}
]
},
queryAllSupplier:{
title:'查询供应商列表接口',
url: '/supplier/supplier/queryAllSupplier',
params: [
{name: 'idName', type: 'String'}
]
},
queryMaxSortByName:{
title:'查询一级类目列表接口',
url: '/product/queryMaxSortByName',
params: [
{name: 'idName', type: 'String'}
]
},
queryAllShops:{
title:'查询店铺列表接口',
url: '/ShopsRest/queryAllShops',
params: [
{name: 'idName', type: 'String'}
]
},
selectCheckPassShopsByName:{
title:'查询通过审核店铺列表接口',
url: '/ShopsRest/selectCheckPassShopsByName',
params: [
{name: 'idName', type: 'String'}
]
},
queryShopsByBrandId:{
title:'根据品牌查询店铺',
url: '/ShopsRest/queryShopsByBrandId',
params: [
{name: 'idName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},
selectActivityListForSelect:{
title:'模糊查询',
url: '/DrawlineActivityRest/selectActivityListForSelect',
params: [
{name: "idName", type: 'String'}
]
},
getJitSupplierByBrandId:{
title:'获取JIT店铺',
url:'/AgreementRest/getJitSupplierByBrandId',
params:[
{name:"brandId",type:"Number"},
{name:"shopId",type:"Number"}
]
},
getSortList:{
title:'',
url: '/guang/article/getSortList',
params: [
{name: "parentId", type: "Number"}
]
},
queryList:{
title:'发券搜索',
url: '/coupon/queryList',
params: [
{name: 'idName', type: 'String'},
{name:"size", type:"Number"}
]
},
getAllAppVersions:{
title:'获取所有APP版本号列表',
url: '/suggest/suggest/getAllAppVersions',
params: [
{name: 'idName', type: 'String'}
]
},
findAllReplyInfo:{
title:'获取所有回复人',
url: '/suggest/suggest/findAllReplyInfo',
params: [
{name: 'idName', type: 'String'}
]
},
querySortBySmallSort:{
title:'类目',
url: '/product/querySortBySmallSort',
params: [
{name: "brandId", type: "Number"},
{name: "sortId", type: "Number"},
{name: "supplierId", type: "Number"}
]
},
queryAllMaxSortList:{
title:'商品管理【ajax查询所有品类】',
url:"/product/queryAllMaxSortList"
},
queryProductSortList:{
title:'商品管理【根据ID ajax查询子品类列表】',
url: '/product/queryProductSortList',
params: [
{name: 'param', type: 'Number'}
]
},
queryPSNotTreeWhenLevelAndStatus:{
title:'物理类目父类查询',
url:'/product/queryPSNotTreeWhenLevelAndStatus',
params: [
{name: 'status',type: 'string'},
{name: 'sortLevel',type: 'string'}
]
},
queryPSListByParentIdWhenStatus:{
title:'物理类目子类查询',
url: '/product/queryPSListByParentIdWhenStatus',
params: [
{name: 'param',type: 'number'}
]
},
queryRefundExchangeProductSkn:{
title:'查询所有ProductSkn和模糊匹配查询ProductSkn',
url: '/refundExchangeAttribute/queryRefundExchangeProductSkn',
params: [
{name: 'idName',type: 'String'}
]
},
fuzzySearchProductSortIds:{
title:'品类ID',
url: '/product/fuzzySearchProductSortIds',
params: [
{name: 'idName',type: 'String'}
]
},
searchAllSortLevel:{
title:'所属分类',
url: '/product/searchAllSortLevel',
params: []
}
}
};
\ No newline at end of file
var request = require('request');
var _ = require('lodash');
var fs = require('fs');
var http = require('http');
var config = global.global.Register;
var Utils = {
objectToUrl: function (items) {
var urls = [];
for (var name in items) {
if (items.hasOwnProperty(name) && items[name]) {
urls.push(name + "=" + items[name]);
}
}
return urls.join('&');
},
createHttpHeader: function (req) {
if (req.session && req.session.user) {
return {
'x-user-id': req.session.user.auth.pid,
'x-user-name': req.session.user.auth.account,
'x-site-type': 1,
'x-client-ip': req.ip,
'x-shop-id': req.session.user.auth.shopId
};
}
},
joinImg: function (url) {
var urlArr = url.split('/');
var domain = 'static.yhbimg.com/goodsimg';
var num = urlArr[urlArr.length - 1].substr(1, 1);
var url1 = domain + url;
if (num == 1) {
return 'http://img11.' + url1;
} else {
return 'http://img12.' + url1;
}
}
};
module.exports = {
namespace: "common",
apis: {
multipart: function (req, callback) {
var result = {code: "500", message: "接口异常"};
var httpHeader = Utils.createHttpHeader(req);
if (!httpHeader) {
result = {code: "501", message: "用户失效,请重新登录"};
return callback(null, result);
}
var body = req.body;
//上传excel文件
if (body.__type == "batch-import") {
var url = Utils.objectToUrl(body);
body.file = fs.createReadStream(req.files[body.filename].path);
request.post({
url: config.domain + '/batch/import?' + url,
formData: body,
headers: httpHeader
}, function optionalCallback(error, httpResponse, rebody) {
if (!error && httpResponse.statusCode == 200) {
result = JSON.parse(rebody);
result.status = true;
}
return callback(null, result);
});
}
//上传txt文件
else if(req.body.__type == "import-txt"){
req.body.file = fs.createReadStream(req.files[req.body.filename].path);
request.post({
url: config.domain+"/couponSendFile/upload",
formData: req.body,
headers: httpHeader
}, function optionalCallback(error, httpResponse, body) {
if (error) {
return callback(null,error);
}
if (!error && httpResponse.statusCode == 200) {
var json = JSON.parse(body);
json.status = true;
return callback(null,json)
} else {
return callback(null,errBackMsg);
}
});
}
//上传图片
else {
var files = req.files[req.body.filename];
//判断是单张传还是多张传
var flag = Object.prototype.toString.call(files) === '[object Array]';
//如果是单张,则数组化
if (!flag) {
files = [];
files.push(req.files[req.body.filename]);
}
req.body.files = [];
req.body.fileNames = [];
for (var index = 0; index < files.length; index++) {
req.body.files[index] = fs.createReadStream(files[index].path);
req.body.fileNames[index] = files[index].name;
}
if (req.body.bucket === 'goodsimg') {
request.post({
url: "http://upload.static.yohobuy.com",
formData: {
fileData: req.body.files,
project: req.body.bucket
}
}, function (error, httpResponse, rebody) {
if (!error && httpResponse.statusCode == 200) {
var ret = JSON.parse(rebody);
var imgs = ret.data.imagesList || [];
var datas = [];
for (var i = 0; i < imgs.length; i++) {
datas.push(Utils.joinImg(imgs[i]))
}
result = {
code: 200,
data: datas[0],
datas: datas,
names: req.body.fileNames,
message: '上传成功',
status: true
};
}
return callback(null, result);
});
} else {
req.body.file = fs.createReadStream(req.files[req.body.filename].path);
request.post({
url: config.domain + '/fileupload/upload',
formData: req.body
}, function optionalCallback(error, httpResponse, rebody) {
if (!error && httpResponse.statusCode == 200) {
result = JSON.parse(rebody);
result.status = true;
}
return callback(null, result);
});
}
}
},
baiduUeditor: function (req, callback) {
var result = {code: "500", message: "接口异常"};
var httpHeader = Utils.createHttpHeader(req);
if (!httpHeader) {
result = {code: "501", message: "用户失效,请重新登录"};
return callback(null, result);
}
req.body.files = [fs.createReadStream(req.files.upfile.path)];
req.body.bucket = "goodsimg";
request.post({
url: "http://upload.static.yohobuy.com",
formData: {
fileData: req.body.files,
project: req.body.bucket
}
}, function optionalCallback(error, httpResponse, body) {
if (!error && httpResponse.statusCode == 200) {
var ret = JSON.parse(body);
if (ret.code === 200) {
var imgUrl = ret.data.imagesList[0];
imgUrl = Utils.joinImg(imgUrl);
result = {};
if (imgUrl) {
result.originalName = Date.now();
result.name = Date.now();
result.url = imgUrl;
result.type = imgUrl.substring(imgUrl.lastIndexOf('.'));
result.state = "SUCCESS";
} else {
result.state = "FAIL";
}
}
}
return callback(null, result);
});
},
downExcel: function (req, callback) {
var result = request.get(config.domain + "/common/" + req.params.name + ".xlsx");
return callback(null, result);
},
exportExcel: function (req, callback) {
var result = request({
method: 'POST',
url: config.domain + '/batch/export',
headers: {
'content-type': 'application/json'
},
body: req.query,
json: true
});
return callback(null, result);
},
proxy: function (req, callback) {
var httpHeader = Utils.createHttpHeader(req);
if (!httpHeader) {
return null;
}
httpHeader['Content-Type'] = 'application/json';
var result = request({
headers: headers,
url: global.config.domain + req.query.url,
body: JSON.stringify(req.body)
});
return callback(null, result)
},
download: function (req, callback) {
var result = request.get(config.domain + "/batch/download?path=" + req.query.path);
return callback(null, result);
}
}
};
\ No newline at end of file
var request = require('request');
var _ = require('lodash');
var fs = require('fs');
var yohoSearch = global.global.Register.yohoSearch;
module.exports = {
namespace: "common",
apis: {
brandlist: function (req, callback) {
var result = request.get(yohoSearch + "/brands.json?status=1");
return callback(null, result);
},
search: function (req, callback) {
var size = 50;//每页数据量
var params = [];
for (var key in req.body) {
params.push(key + "=" + encodeURI(req.body[key]));
}
var url = yohoSearch + "/search.json?viewNum=" + size + "&" + params.join('&');
console.info(url);
request({url: url}, function (error, response, body) {
if (error) {
return callback(null, {msg: "error", code: 500});
} else {
var data = {};
data.list = [];
body = JSON.parse(body);
var dataList = body.data.product_list;
var goodslist = [];
var goodslist1 = [];
for (var m = 0; m < dataList.length; m++) {
if (dataList[m].goods_list && dataList[m].goods_list.length != 0) {
for (var n = 0; n < dataList[m].goods_list.length; n++) {
goodslist.push({a: dataList[m], b: dataList[m].goods_list[n]})
}
} else {
goodslist.push({a: dataList[m], b: {}});
}
}
for (var i = 0; i < goodslist.length; i++) {
goodslist1[i] = _.assign({}, goodslist[i].a, goodslist[i].b);
}
data.list = goodslist1.concat();//显示数据
data.page = body.data.page;//页码
data.totalPage = 1;//body.data.page_total;
data.nums = data.list.length;//记录每一页数据量
return callback(null, {data: data, code: 200});
}
});
}
}
};
module.exports={
namespace:"audit",
apis:{
queryTabCheck:{
title:'列表头部各个审核状态的数量',
url:'/product/queryTabCheck',
params:[
{name: 'productSkn',type: 'Number'},
{name: 'productSkc',type: 'Number'},
{name: 'productSku',type: 'Number'},
{name: 'productName',type: 'String'},
{name: 'shopId',type: 'Number'},
{name: 'brandId',type: 'Number'},
{name: 'isOutLets',type:'String'},
{name: 'isAdvance',type:'String'},
{name: 'gender',type:'String'},
{name: 'isJit',type:'String'},
{name: 'maxSortId',type:'Number'},
{name: 'middleSortId',type: 'Number'},
{name: 'smallSortId',type: 'Number'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'},
]
},
queryNetSaleInforList:{
title:'ajax列表数据',
method:'POST',
url:'/product/queryNetSaleInforList',
params:[
{name: 'productSkn',type: 'Number'},
{name: 'productSkc',type: 'Number'},
{name: 'productSku',type: 'Number'},
{name: 'productName',type: 'String'},
{name: 'shopId',type: 'Number'},
{name: 'brandId',type: 'Number'},
{name: 'isOutLets',type:'String'},
{name: 'isAdvance',type:'String'},
{name: 'gender',type:'String'},
{name: 'isJit',type:'String'},
{name: 'maxSortId',type:'Number'},
{name: 'middleSortId',type: 'Number'},
{name: 'smallSortId',type: 'Number'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'},
{name: 'productStatusStr',type: 'String'},
]
},
updateProductSknStatus:{
title:'驳回操作',
url:'/product/updateProductSknStatus',
params:[
{name: 'productSknList',type: 'String'},
{name: 'targetStatus',type: 'Number'},
{name: 'rejectReason',type:'String'},
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"basegoods",
apis:{
getbaseProductCountByStatus:{
title:"列表头部各个审核状态的数量",
url:"/product/getbaseProductCountByStatus",
params:[
{name: 'supplierId', type: 'Number'},
{name: 'productSkn', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'founder', type: 'Number'},
{name: 'shopId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'isOutLets', type: 'String'},
{name: 'isAdvance', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'isJit', type: 'String'},
{name: 'maxSortId', type: 'Number'},
{name: 'middleSortId', type: 'Number'},
{name: 'smallSortId', type: 'Number'},
{name: 'sortId', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'supplierId', type: 'Number'},
{name: 'isAuditing', type: 'Number'},
{name: 'founderName', type: 'String'},
{name:'factoryCode',type:'String'}
]
},
getBaseProductList:{
title:'列表数据',
url: '/product/getBaseProductList',
params: [
{name: 'supplierId', type: 'Number'},
{name: 'productSkn', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'founder', type: 'Number'},
{name: 'shopId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'isOutLets', type: 'String'},
{name: 'isAdvance', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'isJit', type: 'String'},
{name: 'maxSortId', type: 'Number'},
{name: 'middleSortId', type: 'Number'},
{name: 'smallSortId', type: 'Number'},
{name: 'sortId', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'supplierId', type: 'Number'},
{name: 'isAuditing', type: 'Number'},
{name: 'founderName', type: 'String'},
{name:'factoryCode',type:'String'}
]
},
addBaseProduct:{
title:'添加接口',
url: '/product/addBaseProduct',
params: [
{name: 'ageLevel', type: 'String'},
{name: 'attribute', type: 'Number'},
{name: 'factoryCode', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'goodsSeason', type: 'Number'},
{name: 'goodsYears', type: 'Number'},
{name: 'grade', type: 'Number'},
{name: 'isLimitbuy', type: 'String'},
{name: 'isLimited', type: 'String'},
{name: 'isPromotionalGifts', type: 'String'},
{name: 'productName', type: 'String'},
{name: 'productTag', type: 'String'},
{name: 'retailPriceStr', type: 'String'},
{name: 'salesPriceStr', type: 'String'},
{name: 'expectShelfTimeStr', type: 'String'},
{name: 'expectArrivalTimeStr', type: 'String'},
{name: 'baseGoodInfoStr', type: 'String'},
{name: 'shopId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'supplierId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'middleSortId', type: 'Number'},
{name: 'smallSortId', type: 'Number'},
{name: 'productStandardRelationStr', type: 'String'}
]
},
queryProductColors:{
title:'获取类目颜色',
url: '/productColor/queryProductColors'
},
deleteBaseProduct:{
title:'删除基础商品',
url: '/product/deleteBaseProduct',
params: [
{name: 'productSkn', type: 'Number'},
{name: 'isAuditing', type: 'String'}
]
},
updateBaseProduct:{
title:'修改基础商品接口',
url: '/product/updateBaseProduct',
params: [
{name: 'productSkn', type: 'Number'},
{name: 'ageLevel', type: 'String'},
{name: 'attribute', type: 'Number'},
{name: 'factoryCode', type: 'String'},
{name: 'gender', type: 'String'},
{name: 'goodsSeason', type: 'Number'},
{name: 'goodsYears', type: 'Number'},
{name: 'grade', type: 'Number'},
{name: 'isLimitbuy', type: 'String'},
{name: 'isLimited', type: 'String'},
{name: 'isPromotionalGifts', type: 'String'},
{name: 'productName', type: 'String'},
{name: 'productTag', type: 'String'},
{name: 'retailPriceStr', type: 'String'},
{name: 'salesPriceStr', type: 'String'},
{name: 'expectShelfTimeStr', type: 'String'},
{name: 'expectArrivalTimeStr', type: 'String'},
{name: 'baseGoodInfoStr', type: 'String'},
{name: 'shopId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'supplierId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'middleSortId', type: 'Number'},
{name: 'smallSortId', type: 'Number'},
{name: 'seasons', type: 'String'},
{name: 'isOutLets', type: 'String'},
{name: 'isAdvance', type: 'String'},
{name: 'isVip', type: 'String'},
{name: 'vipSetting', type: 'String'},
{name: 'stock', type: 'Number'},
{name: 'isAuditing', type: 'Number'},
{name: 'productStandardRelationStr', type: 'String'}
]
},
getBaseProduct:{
title:'获取商品详情数据',
url: '/product/getBaseProduct',
params: [
{name: 'productSkn', type: 'Number'},
{name:'isAuditing', type:'Number'}
]
},
batchAuditPassBaseProduct:{
title:'通过',
url: '/product/batchAuditPassBaseProduct',
params: [
{name:'pramStr', type:'String'},
{name: 'productSknList', type: 'String'}
]
},
batchAuditRejectBaseProduct:{
title:'驳回',
url: '/product/batchAuditRejectBaseProduct',
params: [
{name:'targetStatus', type:'Number'},
{name:'pramStr', type:'String'},
{name: 'productSknList', type: 'String'},
{name: 'rejectReason', type: "String"}
]
},
queryAllBySortId4Html:{
title:'销售属性',
url: '/standard/queryAllBySortId4Html',
params: [
{name: 'param', type: 'Number'},
{name: 'displayPosition', type: 'Number'}
]
},
queryMaterialList:{
title:'尺码列表',
url: '/product/queryMaterialList',
params: [
{name: 'categoryId', type: 'Number'}
]
},
checkSkuBarCodeExist:{
title:'检查下SKU 是否存在',
url: '/product/checkSkuBarCodeExistEx',
params: [
{name: "barCode", type: "String"}
]
},
queryBatchImportResult:{
title:'',
url:'/product/queryBatchImportResult',
params:[
{name:"param",type:"String"}
]
}
}
}
\ No newline at end of file
module.exports={
namespace:"cod",
apis:{
queryTotalBrandPayDelivery:{
title:'品牌货到付款限制页面列表',
url: '/payDelivery/queryTotalBrandPayDelivery',
params: [
{name: 'brandId', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
addPayDeliveryCheck:{
title:'开启 & 关闭 货到付款',
url: '/payDelivery/addPayDeliveryCheck',
params: [
{name: 'isPayDelivery', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},
reviewPayDeliveryCheck:{
title:'通过 & 驳回申请',
url: '/payDelivery/reviewPayDeliveryCheck',
params: [
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'rejectReason', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
queryCountBrandPayDelivery:{
title:'获取tab上的数量',
url: '/payDelivery/queryCountBrandPayDelivery',
params: [
{name: 'brandId', type: 'Number'},
{name: 'isPayDelivery', type: 'Number'}
]
},
queryPayDeliveryList:{
title:'单品货到付款限制页面路由——列表',
url: '/payDelivery/queryPayDeliveryList',
params: [
{name: 'brandId', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'status', type:'Number'},
{name: 'productSkn', type:'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
openPayDelivery:{
title:'开启货到付款',
url: '/payDelivery/openPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},
closePayDelivery:{
title:'关闭货到付款',
url: '/payDelivery/closePayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},
passPayDelivery:{
title:'通过申请',
url: '/payDelivery/passPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
rejectPayDelivery:{
title:'驳回申请',
url: '/payDelivery/rejectPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'rejectReason', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
queryPayDeliveryProductSkn:{
title:'获取skn列表',
url: '/payDelivery/queryPayDeliveryProductSkn',
params: [
{name: 'idName', type: 'String'}
]
},
queryCountProductPayDelivery:{
title:'获取tab上的数量',
url: '/payDelivery/queryCountProductPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'isPayDelivery', type: 'Number'}
]
},
queryPayDeliveryBrandName:{
title:'获取品牌列表',
url: '/payDelivery/queryPayDeliveryBrandName',
params: [
{name: 'idName', type: 'String'}
]
}
}
}
\ No newline at end of file
module.exports = {
namespace: "limitcategory",
apis: {
queryProductSortRefundAllReferdSortInfo: {
title: '品类限制列表数据',
url: '/product/queryProductSortRefundAllReferdSortInfo',
params: [
{name: 'sortId', type: 'Number'},
{name: 'sortNameId', type: 'String'},
{name: 'sortLevel', type: 'Number'}
]
},
openProductSortRefundExchange: {
title: '开启品类限制',
url: "/product/openProductSortRefundExchange",
params: [
{name: 'param', type: 'Number'}
]
},
closeProductSortRefundExchange: {
title: '关闭品类限制',
url: '/product/closeProductSortRefundExchange',
params: [
{name: 'param', type: 'String'}
]
}
}
};
\ No newline at end of file