brand.js
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import {
GlAxios
} from 'glsx-vue-common'
const path = 'admin-ddh-aimanager/ip/expression'
const __expressionList = `${path}/search`
const __grayscaleuser = `${path}/download/grayscaleuser`
const __addExp = `${path}/add`
const __getExp = `${path}/get`
const __mergeExp = `${path}/merge`
const __addBg = `${path}/background/add`
const __mergeBg = `${path}/background/merge`
const getExpList = {
p: [__expressionList],
req: params => GlAxios.post(__expressionList, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
const grayscaleuser = {
p: [__grayscaleuser],
req: params => GlAxios.get(__grayscaleuser, { params })
}
const addExp = {
p: [__addExp],
req: params => GlAxios.post(__addExp, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
const getExp = {
p: [__getExp],
req: params => GlAxios.post(__getExp, params)
}
const mergeExp = {
p: [__mergeExp],
req: params => GlAxios.post(__mergeExp, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
const addBg = {
p: [__addBg],
req: params => GlAxios.post(__addBg, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
const mergeBg = {
p: [__mergeBg],
req: params => GlAxios.post(__mergeBg, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
export {
getExpList,
grayscaleuser,
addExp,
getExp,
mergeExp,
addBg,
mergeBg
}