import { PUT , POST , DELETE } from '@/utils/fetch' ; /**
 * 操作财富值
 * operationType为0奖励，1惩罚
 */ export const operateWealth = ( postId , value , reason , operationType ) => POST ( `post/${ postId }/operation` , { params : { reason , operationType , wealth : value , } , } ) ; /**
 * 操作威望
 * operationType为0奖励，1惩罚
 */ export const operatePrestige = ( postId , value , reason , operationType ) => POST ( `post/${ postId }/operation` , { params : { reason , operationType , prestige : value , } , } ) ; /**
 * 删除回帖
 */ export const deletePost = ( postId , reason ) => DELETE ( `post/${ postId }` , { params : { reason , } , } ) ; /**
 * TP
 */ export const stopPost = ( postId , value , reason ) => POST ( `post/${ postId }/operation` , { params : { reason , stopPostDays : value , operationType : 1 , } , } ) ; /**
 * 解禁
 */ export const cancelStopPost = ( boardId , userId ) => DELETE ( `/board/${ boardId }/stop-post-user/${ userId }` ) ; /**
 * 删除主题
 */ export const deleteTopic = ( topicId , reason ) => DELETE ( `topic/${ topicId }` , { params : { reason , } , } ) ; /**
 * 锁定主题
 */ export const lockTopic = ( topicId , reason , value ) => PUT ( `topic/${ topicId }/lock` , { params : { reason , value , } , } ) ; /**
 * 解锁
 */ export const unlockTopic = ( topicId , reason ) => DELETE ( `topic/${ topicId }/lock` , { params : { reason , } , } ) ; /**
 * 禁止热门
 */ export const notHot = ( topicId , reason ) => PUT ( `topic/${ topicId }/not-hot` , { params : { reason , } , } ) ; /**
 * 允许热门
 */ export const deleteNotHot = ( topicId , reason ) => DELETE ( `topic/${ topicId }/not-hot` , { params : { reason , } , } ) ; /**
 * 提升主题
 */ export const upTopic = ( topicId , reason ) => PUT ( `topic/${ topicId }/up` , { params : { reason , } , } ) ; /**
 * 固顶
 */ export const topTopic = ( topicId , reason , duration , topState ) => PUT ( `topic/${ topicId }/top` , { params : { reason , duration , topState , } , } ) ; /**
 * 取消固顶
 */ export const deleteTopTopic = ( topicId , reason ) => DELETE ( `topic/${ topicId }/top` , { params : { reason , } , } ) ; /**
 * 加精
 */ export const bestTopic = ( topicId , reason ) => PUT ( `topic/${ topicId }/best` , { params : { reason , } , } ) ; /**
 * 取消加精
 */ export const deleteBestTopic = ( topicId , reason ) => DELETE ( `topic/${ topicId }/best` , { params : { reason , } , } ) ; /**
 * 移动
 */ export const moveTopic = ( topicId , reason , boardId ) => PUT ( `topic/${ topicId }/moveto/${ boardId }` , { params : { reason , } , } ) ;