添加上下班

This commit is contained in:
wangxiaowei
2026-04-20 17:34:37 +08:00
parent e978bd932e
commit 7c784284ce
4 changed files with 62 additions and 43 deletions

View File

@ -181,3 +181,20 @@ export function updateUserAddressLocation(id: number) {
export function getUserAddressInfo(id: number) {
return http.Post<any>('/teamapi/user/addressDetails', { id })
}
/**
* 获取配置项
*/
export function getConfigItem() {
return http.Post<any>('/teamapi/setting/set', null, {
meta: { ignoreAuth: true }
})
}
/**
* 更新用户上下班状态
*/
export function updateWorkState(state: number) {
return http.Post<any>('/teamapi/user/updateState', {state})
}