init
This commit is contained in:
parent
82005cb541
commit
29d76f2224
@ -69,27 +69,27 @@ export const addAccount = (data: { id: string; cookie: string }): Promise<ApiRes
|
||||
|
||||
// 更新账号 Cookie 值
|
||||
export const updateAccountCookie = (id: string, value: string): Promise<ApiResponse> => {
|
||||
return put(`/cookies/${id}`, { id, value })
|
||||
return put(`/goofish/cookies/${id}`, { id, value })
|
||||
}
|
||||
|
||||
// 更新账号启用/禁用状态
|
||||
export const updateAccountStatus = (id: string, enabled: boolean): Promise<ApiResponse> => {
|
||||
return put(`/cookies/${id}/status`, { enabled })
|
||||
return put(`/goofish/cookies/${id}/status`, { enabled })
|
||||
}
|
||||
|
||||
// 更新账号备注
|
||||
export const updateAccountRemark = (id: string, remark: string): Promise<ApiResponse> => {
|
||||
return put(`/cookies/${id}/remark`, { remark })
|
||||
return put(`/goofish/cookies/${id}/remark`, { remark })
|
||||
}
|
||||
|
||||
// 更新账号自动确认设置
|
||||
export const updateAccountAutoConfirm = (id: string, autoConfirm: boolean): Promise<ApiResponse> => {
|
||||
return put(`/cookies/${id}/auto-confirm`, { auto_confirm: autoConfirm })
|
||||
return put(`/goofish/cookies/${id}/auto-confirm`, { auto_confirm: autoConfirm })
|
||||
}
|
||||
|
||||
// 更新账号暂停时间
|
||||
export const updateAccountPauseDuration = (id: string, pauseDuration: number): Promise<ApiResponse> => {
|
||||
return put(`/cookies/${id}/pause-duration`, { pause_duration: pauseDuration })
|
||||
return put(`/goofish/cookies/${id}/pause-duration`, { pause_duration: pauseDuration })
|
||||
}
|
||||
|
||||
// 更新账号登录信息(用户名、密码、是否显示浏览器)
|
||||
@ -98,7 +98,7 @@ export const updateAccountLoginInfo = (id: string, data: {
|
||||
login_password?: string
|
||||
show_browser?: boolean
|
||||
}): Promise<ApiResponse> => {
|
||||
return put(`/cookies/${id}/login-info`, data)
|
||||
return put(`/goofish/cookies/${id}/login-info`, data)
|
||||
}
|
||||
|
||||
// 删除账号
|
||||
|
||||
Loading…
Reference in New Issue
Block a user