| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import request from '@/utils/request'
- // 内容维度阈值显隐配置 API
- // 契约(后端已实现,勿改):
- // - GET /api/admin/content-dimension-threshold/list?contentType=PRODUCT&contentId=123
- // - POST /api/admin/content-dimension-threshold/batch-save
- // - DELETE /api/admin/content-dimension-threshold/{id}
- // 查询某内容项的维度阈值列表(含 id)
- export function getContentDimensionThresholdList(params) {
- return request({
- url: '/api/admin/content-dimension-threshold/list',
- method: 'get',
- params
- })
- }
- // 整表替换保存(contentType/contentId/items 一次性提交),返回保存后的阈值列表(含 id)
- export function batchSaveContentDimensionThreshold(data) {
- return request({
- url: '/api/admin/content-dimension-threshold/batch-save',
- method: 'post',
- data
- })
- }
- // 单条删除
- export function deleteContentDimensionThreshold(id) {
- return request({
- url: `/api/admin/content-dimension-threshold/${id}`,
- method: 'delete'
- })
- }
- // 管理端获取全部小游戏(用于 MINIGAME 维度阈值配置的挂载点)
- export function getAllMiniGames() {
- return request({
- url: '/api/mini-game/all',
- method: 'post'
- })
- }
|