123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- import request from '@/utils/request'
- import qs from 'qs'
- export const getBaseUnitViews = (params) => {
- return new request({
- url: './project/baseUnitViews/',
- method: 'get',
- params: params
- });
- }
- // 查询标签
- export const getLeagueIdByUnitId = (params) => {
- return new request({
- url: '/baseLeagueMembers/getLeagueIdByUnitId',
- method: 'get',
- params: params
- });
- }
- //添加收藏
- export function addCollectInfo(modelId,modelType,userId,collectType,token) {
- return new request({
- url: './op/basePortalModelCollectInfos/addCollectInfo',
- method: 'post',
- headers: {
- token
- },
- data: {
- modelId:modelId,
- modelType:modelType,
- userId:userId,
- collectType:collectType
- }
- });
- }
- // export const addCollectInfo = (params) => {
- // return new request({
- // url: './op/basePortalModelCollectInfos/addCollectInfo',
- // method: 'get',
- // params: params
- // });
- // }
- export const getPortalMyCollecModel = (params) => {
- return new request({
- url: './op/basePortalModelCollectInfos/getPortalMyCollecModel',
- method: 'get',
- params: params
- });
- }
- export const get = (id) => {
- return new request({
- url: './project/baseUnitViews/' + id,
- method: 'get',
- });
- }
- export const cmsInformationViews = (params) => {
- return new request({
- url: './cms/cmsInformationViews/getInformationList/',
- method: 'get',
- params: params
- });
- }
- export const getInformationById = (params) => {
- return new request({
- url: './cms/cmsInformationViews/getInformationById/',
- method: 'get',
- params: params
- });
- }
- export const getHotInformationList = (params) => {
- return new request({
- url: './cms/cmsInformationViews/getHotInformationList',
- method: 'get',
- params: params
- });
- }
- export const getUnit = (businessId,language) => {
- return new request({
- url: './cms/cmsInformationViews/getInformationNumber',
- method: 'get',
- params: {
- businessId:businessId,
- language:language,
- }
- });
- }
- export function saveOrUpdate(baseUnitView, token) {
- return new request({
- url: './base/baseUnitViews',
- method: (baseUnitView.id ? 'put' : 'post'),
- headers: {
- token
- },
- data: {
- baseUnitView
- }
- });
- }
- export function del(id) {
- return new request({
- url: './base/baseUnitViews/' + id,
- method: 'delete',
- });
- }
- export const gateGetUnitViewById = (baseEntityId,language) => {
- return new request({
- url: './project/baseUnitViews/getMemberUnit',
- method: 'get',
- params: {
- baseEntityId:baseEntityId,
- language:language
- }
- });
- }
- export const getViewByEntityId = (baseEntityId,language) => {
- return new request({
- url: './project/baseUnitViews/getViewByEntityId',
- method: 'get',
- params: {
- baseEntityId:baseEntityId,
- language:language
- }
- });
- }
- export const getViewByIds = (ids,language) => {
- return new request({
- url: './project/baseUnitViews/getViewByEntityId',
- method: 'get',
- params: {
- ids:ids,
- language:language
- }
- });
- }
- export const getInformationCountByIds = (businessIds,language) => {
- return new request({
- url: './cms/cmsInformationViews/'+language+'/'+businessIds+'/getInformationCountByIds',
- method: 'get',
- headers:{
- ANON: true
- },
- });
- }
- export const getLatestInformationPortal = (params) => {
- return new request({
- url: './cms/cmsInformationViews/getLatestInformationPortal/',
- method: 'get',
- params: params
- });
- }
- export const getHitsInformationList = (params) => {
- return new request({
- url: './cms/cmsInformationViews/getHitsInformationList',
- method: 'get',
- params: params
- });
- }
|