star.js 701 Bytes
Newer Older
Davve's avatar
Davve committed
1 2 3 4 5 6 7 8 9 10
import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/api/star/list',
    method: 'get',
    params: query
  })
}

Davve's avatar
Davve committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
export function starCreate(data) {
  return request({
    url: '/api/star/create',
    method: 'post',
    data
  })
}

export function starDetail(id) {
  return request({
    url: '/api/star/detail',
    method: 'get',
    params: { id }
  })
}
Davve's avatar
Davve committed
26 27 28 29 30 31 32 33

export function OffLineOrOnLine(data) {
  return request({
    url: '/api/star/update_or_create',
    method: 'post',
    data
  })
}
Davve's avatar
Davve committed
34 35 36 37 38 39 40 41

export function fetchStarRelatedGroup(id) {
  return request({
    url: '/api/star/star_related_group_info',
    method: 'get',
    params: { id }
  })
}