init
This commit is contained in:
51
api/app/index.js
Normal file
51
api/app/index.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType) {
|
||||
return request({
|
||||
url: '/system/dict/data/type/' + dictType,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey) {
|
||||
return request({
|
||||
url: '/system/config/configKey/' + configKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询短剧资源列表
|
||||
export function listDuanju(query) {
|
||||
return request({
|
||||
url: '/app/new/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询短剧资源数量
|
||||
export function duanjuNumber(query) {
|
||||
return request({
|
||||
url: '/app/new/listNumber',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 修改短剧资源
|
||||
export function updateDuanju(data) {
|
||||
return request({
|
||||
url: '/app/new/copy',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取排行榜数据
|
||||
export function getRanking() {
|
||||
return request({
|
||||
url: '/app/new/ranking',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user