260720
This commit is contained in:
47
pages/tygl/service.js
Normal file
47
pages/tygl/service.js
Normal file
@@ -0,0 +1,47 @@
|
||||
import { get } from '../../utils/request'
|
||||
import { API_BASE_URL, apiRequest, getCurrentUser } from '../assistant/chat-service'
|
||||
|
||||
export { getCurrentUser }
|
||||
|
||||
export function listDictData(params) {
|
||||
return get('/system/dict-data', params)
|
||||
}
|
||||
|
||||
export function listOrganizations(params) {
|
||||
return get('/system/organization', params)
|
||||
}
|
||||
|
||||
export function listColleges(params) {
|
||||
return get('/gxmu/college', params)
|
||||
}
|
||||
|
||||
export function listClasses(params) {
|
||||
return get('/gxmu/class', params)
|
||||
}
|
||||
|
||||
export function getUserProfile() {
|
||||
return apiRequest({
|
||||
url: `${API_BASE_URL}/auth/user`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
export function getCurrentTyglForm() {
|
||||
return get('/gxmu/tygl-form/current')
|
||||
}
|
||||
|
||||
export function saveTyglForm(data) {
|
||||
return apiRequest({
|
||||
url: `${API_BASE_URL}/gxmu/tygl-form`,
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateTyglForm(data) {
|
||||
return apiRequest({
|
||||
url: `${API_BASE_URL}/gxmu/tygl-form`,
|
||||
method: 'PUT',
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user