123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- import ajax from '../utils/request.js';
- /**
- * 登录
- * @param {object} ori
- * @returns
- */
- export function login(ori) {
- return ajax({
- api: '/user/login',
- data: ori.data,
- method: 'POST',
- });
- }
- /**
- * 文案校对
- * @param {object} ori
- * @returns
- */
- export function check(ori) {
- return ajax({
- api: '/api/check',
- data: ori.data,
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 热门话题
- * @param {object} ori
- * @returns
- */
- export function hotRank(ori) {
- return ajax({
- api: '/news/hotRank/list',
- data: ori.data,
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 检索新闻接口
- * @param {object} ori
- * @returns
- */
- export function searchData(ori) {
- return ajax({
- api: '/news/data/search',
- data: ori.data,
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 获得新闻分类
- * @param {object} ori
- * @returns
- */
- export function getClass(ori) {
- return ajax({
- api: '/news/data/category',
- data: ori.data,
- method: 'GET',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * h5商城接口
- * @param {Object} ori
- * @returns
- */
- // export function getH5Mall(ori) {
- // return ajax({
- // api: '/topic/tool/img/cache/oridata.json?' + Date.now(),
- // data: ori.data,
- // base: 'json',
- // type: 'ajax',
- // method: 'GET',
- // headers: {
- // Authorization: localStorage.getItem('token'),
- // },
- // });
- // }
- /**
- * 行政区划接口
- * @param {Object} ori
- * @returns
- */
- export function getEconomize(ori) {
- return ajax({
- api: '/news/area/list',
- data: ori.data,
- type: 'ajax',
- method: 'GET',
- });
- }
- /**
- * 报料
- * @param {object} ori
- * @returns
- */
- export function getreporting(ori) {
- return ajax({
- api: '/clue/list',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 报料删除
- */
- export function delreporting(ori) {
- return ajax({
- api: '/clue/delete',
- data: ori.data,
- type: 'ajax',
- method: 'GET',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 查看报料
- */
- export function getreportingDetail(ori) {
- return ajax({
- api: '/clue/info',
- data: ori.data,
- type: 'ajax',
- method: 'GET',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 审核报料
- */
- export function reportingShenhe(ori) {
- return ajax({
- api: '/clue/verify',
- data: ori.data,
- type: 'ajax',
- method: 'GET',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 回复报料
- */
- export function reportingReply(ori) {
- return ajax({
- api: '/clue/reply',
- data: ori.data,
- type: 'ajax',
- method: 'GET',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 获取模板列表
- */
- export function getTemplateList(ori) {
- return ajax({
- api: '/h5template/list',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 生成页面
- */
- export function createTemplateList(ori) {
- return ajax({
- api: '/h5operate/store',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 更新页面
- */
- export function updateTemplateList(ori) {
- return ajax({
- api: '/h5operate/update',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 个人页面列表
- */
- export function getPersonalList(ori) {
- return ajax({
- api: '/h5operate/list',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 删除个人列表
- */
- export function deletePersonalList(ori) {
- return ajax({
- api: '/h5operate/delete',
- data: ori.data,
- type: 'ajax',
- method: 'GET',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 获取各个平台授权账号
- */
- export function getAccountList(ori) {
- return ajax({
- api: '/new-media/list',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 获取各个平台授权账号传播数据
- */
- export function getAccountData(ori) {
- return ajax({
- api: '/new-media/agg',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 获取平台更新时间
- */
- export function getUpdateTime(ori) {
- return ajax({
- api: '/new-media/platform',
- data: ori.data,
- type: 'ajax',
- method: 'POST',
- headers: {
- Authorization: localStorage.getItem('token'),
- },
- });
- }
- /**
- * 获取组件列表
- */
- export function getComponentsList(ori) {
- return ajax({
- api: '/operate/h5Template/json/components.json?' + Date.now(),
- data: ori.data,
- type: 'ajax',
- base: 'json',
- method: 'GET',
- });
- }
|