This commit is contained in:
2026-07-20 11:56:02 +08:00
commit 2dcae4165b
176 changed files with 34633 additions and 0 deletions

47
pages/tygl/service.js Normal file
View 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
})
}