This commit is contained in:
55
src/api/spring/blessing/contentTemplate/index.js
Normal file
55
src/api/spring/blessing/contentTemplate/index.js
Normal file
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getList(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/blessing/content_template/list',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doAdd(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/blessing/content_template',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doEdit(id, data) {
|
||||
return request({
|
||||
url: `/management/api/spring/blessing/content_template/${id}`,
|
||||
method: 'put',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doDelete(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/blessing/content_template/delete',
|
||||
method: 'put',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doMoveUp(id) {
|
||||
return request({
|
||||
url: `/management/api/spring/blessing/content_template/moveUp/${id}`,
|
||||
method: 'patch',
|
||||
})
|
||||
}
|
||||
|
||||
export function doMoveDown(id) {
|
||||
return request({
|
||||
url: `/management/api/spring/blessing/content_template/moveDown/${id}`,
|
||||
method: 'patch',
|
||||
})
|
||||
}
|
||||
|
||||
export function toggleEnable(id, isEnabled) {
|
||||
return request({
|
||||
url: `/management/api/spring/blessing/content_template/enable/${id}`,
|
||||
method: 'patch',
|
||||
data: { isEnabled },
|
||||
})
|
||||
}
|
||||
25
src/api/spring/blessing/generateRecord/index.js
Normal file
25
src/api/spring/blessing/generateRecord/index.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getList(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/blessing/generate-record/list',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
export function getShareList(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/blessing/share-record/list',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
export function getViewList(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/blessing/view-record/list',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
@@ -45,3 +45,11 @@ export function doMoveDown(id) {
|
||||
method: 'patch',
|
||||
})
|
||||
}
|
||||
|
||||
export function toggleEnable(id, isEnabled) {
|
||||
return request({
|
||||
url: `/management/api/spring/blessing/template/enable/${id}`,
|
||||
method: 'patch',
|
||||
data: { isEnabled },
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user