Newer
Older
xinJiangMiniProgranm / api / rumor.js
liyaguang on 14 Jun 2023 548 bytes 举报调试完成/谣言查证完成
// 谣言相关接口
import fetch from '@/common/fetch.js';
import BASE_URL from './base1.js';

const LIST = BASE_URL + '/businessRumor/list'
const Vote = BASE_URL + '/businessVoteRecord/isVote'
const Add = BASE_URL + '/businessRumor/add'
// 谣言列表
export function getRumorList(data) {
	return fetch.post(LIST, data).then(res => res);
}
// 用户是否投票
export function isVote(data) {
	return fetch.post(Vote, data).then(res => res);
}
// 用户投票
export function addVote(data) {
	return fetch.post(Add, data).then(res => res);
}