diff --git a/src/api/contentCenter/types.ts b/src/api/contentCenter/types.ts index d7c33c8..638f3ce 100644 --- a/src/api/contentCenter/types.ts +++ b/src/api/contentCenter/types.ts @@ -5,36 +5,63 @@ export interface CategoryTreeVO { weight: number; children: CategoryTreeVO[]; } +export interface Formaget { + vlogId: number | string; + reason: string; + status: number; +} +export interface fansListVO { + bothFriend: number; + createdTime: string; + face: string; + fanId: string; + friend: boolean; + nickname: string; +} + +export interface CommentsVO { + comment_user_id: string; + content: string; + create_time: string; + father_comment_id: string; + id: string; + like_counts: number; + userFace: string; + userNickname: string; + vlog_id: string; + vloger_id: string; +} +export interface likeVO { + face: string; + nickname: string; + create_time: string; +} + export interface CategoryVO { /** * 流程分类ID */ categoryId: string | number; - - /** - * 父级id - */ - parentId: string | number; - - /** - * 流程分类名称 - */ - categoryName: string; - - /** - * 显示顺序 - */ - orderNum: number; - - /** - * 创建时间 - */ + mediaUrl: string; + description: string; + updateTime: string; + className: string; + type: string; + storageRegion: string; + coverUrl: string; + tagSet: string[]; + classId: number; + storageClass: string; + expireTime: string; createTime: string; - - /** - * 子对象 - */ - children: CategoryVO[]; + classPath: string; + name: string; + category: string; + fileId: string; + status: string; + commentCounts: number; + likeCounts: number; + fansCounts: number; } export interface CategoryForm extends BaseEntity { @@ -66,4 +93,11 @@ export interface CategoryQuery { * 流程分类名称 */ categoryName?: string; + /** + * 当前页 + */ + current?: number /** + * 每页页数 + */; + size?: number; } diff --git a/src/api/workflow/category/index.ts b/src/api/workflow/category/index.ts index b6a83ea..1517701 100644 --- a/src/api/workflow/category/index.ts +++ b/src/api/workflow/category/index.ts @@ -1,6 +1,7 @@ -import request from '@/utils/request'; +import { CategoryForm, CategoryQuery, CategoryTreeVO, CategoryVO, Formaget } from '@/api/workflow/category/types'; + import { AxiosPromise } from 'axios'; -import { CategoryVO, CategoryForm, CategoryQuery, CategoryTreeVO } from '@/api/workflow/category/types'; +import request from '@/utils/request'; /** * 查询流程分类列表 @@ -10,12 +11,56 @@ import { CategoryVO, CategoryForm, CategoryQuery, CategoryTreeVO } from '@/api/w export const listCategory = (query?: CategoryQuery): AxiosPromise => { return request({ - url: '/workflow/category/list', + // url: '/workflow/category/list',old + url: '/admin/vlog/upload/list', method: 'get', params: query }); }; +/** + * 视频通过和反驳 + * @param vlogId 视频id + * @param reason 反驳理由 + * @param status 状态1:通过 2:反驳 + */ +export const updateaudit = (data?: Formaget) => { + return request({ + url: `/admin/vlog/upload/audit?vlogId=${data.vlogId}&reason=${data.reason}&status=${data.status}`, + method: 'post' + }); +}; +/** + * 获取去视频详情 + * @param vlogId 视频id + */ +export const gerdetail = (data?: string) => { + return request({ + url: `/admin/vlog/upload/detail?fileId=${data}`, + method: 'get' + }); +}; +/** + * 删除评论 + * @param data 评论id + */ +export const deldetail = (data?: string) => { + return request({ + url: `/admin/comment/delete?commentId=${data}`, + method: 'post' + }); +}; +/** + * 视频通过和反驳 + * @param vlogId 视频id + */ +export const updateaforbid = (vlogId?: string) => { + return request({ + url: `/admin/vlog/upload/forbid`, + method: 'post', + data: { fileIds: vlogId, operation: 'forbid' } + }); +}; /** * 查询流程分类详细 * @param categoryId diff --git a/src/api/workflow/category/types.ts b/src/api/workflow/category/types.ts index 99a53a6..424b06a 100644 --- a/src/api/workflow/category/types.ts +++ b/src/api/workflow/category/types.ts @@ -5,6 +5,12 @@ export interface CategoryTreeVO { weight: number; children: CategoryTreeVO[]; } +export interface Formaget { + vlogId: number | string; + reason: string; + status: number; +} + export interface CategoryVO { /** * 流程分类ID diff --git a/src/router/index.ts b/src/router/index.ts index da9fb4c..99a3742 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,7 +1,10 @@ -import { createWebHistory, createRouter, RouteRecordRaw } from 'vue-router'; -/* Layout */ +import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'; + import Layout from '@/layout/index.vue'; +/* Layout */ + + /** * Note: 路由配置项 * diff --git a/src/views/contentManage/video/index.vue b/src/views/contentManage/video/index.vue index 8958aa8..528f55b 100644 --- a/src/views/contentManage/video/index.vue +++ b/src/views/contentManage/video/index.vue @@ -21,7 +21,7 @@ - +