添加上下班
This commit is contained in:
@ -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})
|
||||
}
|
||||
Reference in New Issue
Block a user