This commit is contained in:
parent
4561319933
commit
f963336f8b
@ -1,12 +1,9 @@
|
|||||||
import {mande} from "mande";
|
import {mande} from "mande";
|
||||||
|
|
||||||
const usCoachOutletSpider = mande('/api/v1/spider/us/coach-outlet')
|
const cnCoachOutletSpider = mande('/api/v1/spider/cn/coach-outlet')
|
||||||
|
|
||||||
export const GetUSCoachOutletSpiderCfg = ()=> usCoachOutletSpider.get("cfg")
|
export const GetCNCoachOutletSpiderGlobalCalculate = ()=> cnCoachOutletSpider.get("global/calculate")
|
||||||
|
export const DeleteCNCoachOutletSpiderGlobalCalculate = (id)=> cnCoachOutletSpider.delete(`global/calculate/u/${id}`)
|
||||||
export const SetUSCoachOutletSpiderCfg = (cfg)=> usCoachOutletSpider.post("cfg",cfg)
|
export const SaveCNCoachOutletSpiderGlobalCalculate = (data)=> cnCoachOutletSpider.post("global/calculate",data)
|
||||||
export const GetUSCoachOutletSpiderGlobalCalculate = ()=> usCoachOutletSpider.get("global/calculate")
|
export const DeleteCNCoachOutletSpiderCalculate = (id)=> cnCoachOutletSpider.delete(`calculate/u/${id}`)
|
||||||
export const DeleteCnCoachOutletSpiderGlobalCalculate = (id)=> usCoachOutletSpider.delete(`global/calculate/u/${id}`)
|
export const SaveCNCoachOutletSpiderCalculate = (data)=> cnCoachOutletSpider.post("calculate",data)
|
||||||
export const SaveUSCoachOutletSpiderGlobalCalculate = (data)=> usCoachOutletSpider.post("global/calculate",data)
|
|
||||||
export const DeleteCnCoachOutletSpiderCalculate = (id)=> usCoachOutletSpider.delete(`calculate/u/${id}`)
|
|
||||||
export const SaveUSCoachOutletSpiderCalculate = (data)=> usCoachOutletSpider.post("calculate",data)
|
|
12
src/api/us-coach-outlet-spider.js
Normal file
12
src/api/us-coach-outlet-spider.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import {mande} from "mande";
|
||||||
|
|
||||||
|
const usCoachOutletSpider = mande('/api/v1/spider/us/coach-outlet')
|
||||||
|
|
||||||
|
export const GetUSCoachOutletSpiderCfg = ()=> usCoachOutletSpider.get("cfg")
|
||||||
|
|
||||||
|
export const SetUSCoachOutletSpiderCfg = (cfg)=> usCoachOutletSpider.post("cfg",cfg)
|
||||||
|
export const GetUSCoachOutletSpiderGlobalCalculate = ()=> usCoachOutletSpider.get("global/calculate")
|
||||||
|
export const DeleteUSCoachOutletSpiderGlobalCalculate = (id)=> usCoachOutletSpider.delete(`global/calculate/u/${id}`)
|
||||||
|
export const SaveUSCoachOutletSpiderGlobalCalculate = (data)=> usCoachOutletSpider.post("global/calculate",data)
|
||||||
|
export const DeleteUSCoachOutletSpiderCalculate = (id)=> usCoachOutletSpider.delete(`calculate/u/${id}`)
|
||||||
|
export const SaveUSCoachOutletSpiderCalculate = (data)=> usCoachOutletSpider.post("calculate",data)
|
Loading…
Reference in New Issue
Block a user