1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import request from '@/utils/request'
- import qs from 'qs'
- export const getBaseLeagueEntitys = (params) => {
- return new request({
- url: './project/baseLeagueEntitys/',
- method: 'get',
- params: params
- });
- }
- export const get = (id) => {
- return new request({
- url: './project/baseLeagueEntitys/' + id,
- method: 'get',
- });
- }
- export function saveOrUpdate(baseLeagueEntity, token) {
- return new request({
- url: './project/baseLeagueEntitys',
- method: (baseLeagueEntity.id ? 'put' : 'post'),
- headers: {
- token
- },
- data: {
- baseLeagueEntity
- }
- });
- }
- export function del(id) {
- return new request({
- url: './project/baseLeagueEntitys/' + id,
- method: 'delete',
- });
- }
- export function saveBaseLeagueEntityAndInfos(baseLeagueEntity,baseLeagueInfos, token) {
- return new request({
- url: './project/baseLeagueEntitys/saveBaseLeagueEntityAndInfos',
- method: 'put',
- headers: {
- token
- },
- data: {
- baseLeagueEntity,
- baseLeagueInfos
- }
- });
- }
- export const getBaseLeagues = (params) => {
- return new request({
- url: './project/baseLeagueInfos/getBaseLeagues',
- method: 'get',
- params: params
- });
- }
|