mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-11-16 17:34:23 +08:00
feat: show current owner names and persist user and limit order (#576)
Resolve current forwarding-rule owner names by user ID. Add administrator-managed persistent user and speed-limit ordering, backup compatibility, and conflict recovery. Repair PostgreSQL explicit-ID import sequences transactionally. Closes #574 Closes #575
This commit is contained in:
@@ -619,3 +619,13 @@ export const assignMonitorPermission = (userId: number) =>
|
||||
|
||||
export const removeMonitorPermission = (userId: number) =>
|
||||
Network.post("/monitor/permission/remove", { userId });
|
||||
|
||||
// Complete ordered IDs plus the last observed server order for conflict detection.
|
||||
export interface OrderUpdatePayload {
|
||||
ids: number[];
|
||||
expectedIds: number[];
|
||||
}
|
||||
export const updateUserOrder = (data: OrderUpdatePayload) =>
|
||||
Network.post("/user/update-order", data);
|
||||
export const updateSpeedLimitOrder = (data: OrderUpdatePayload) =>
|
||||
Network.post("/speed-limit/update-order", data);
|
||||
|
||||
Reference in New Issue
Block a user