mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
* Initial plan * feat: 实现进程管理增强功能 - 信号发送、排序筛选、搜索和右键菜单 Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> * fix: 修复代码审查问题并删除遗留文件 task/SystemView.vue Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
package request
|
|
|
|
// ProcessKill 结束进程请求
|
|
type ProcessKill struct {
|
|
PID int32 `json:"pid" validate:"required"`
|
|
}
|
|
|
|
// ProcessDetail 获取进程详情请求
|
|
type ProcessDetail struct {
|
|
PID int32 `json:"pid" form:"pid" query:"pid" validate:"required"`
|
|
}
|
|
|
|
// ProcessSignal 发送信号请求
|
|
// 支持的信号: SIGHUP(1), SIGINT(2), SIGKILL(9), SIGUSR1(10), SIGUSR2(12), SIGTERM(15), SIGCONT(18), SIGSTOP(19)
|
|
type ProcessSignal struct {
|
|
PID int32 `json:"pid" validate:"required"`
|
|
Signal int `json:"signal" validate:"required|in:1,2,9,10,12,15,18,19"`
|
|
}
|
|
|
|
// ProcessList 进程列表请求
|
|
type ProcessList struct {
|
|
Page uint `json:"page" form:"page" query:"page"`
|
|
Limit uint `json:"limit" form:"limit" query:"limit"`
|
|
Sort string `json:"sort" form:"sort" query:"sort"` // pid, name, cpu, rss, start_time
|
|
Order string `json:"order" form:"order" query:"order"` // asc, desc
|
|
Status string `json:"status" form:"status" query:"status"` // R, S, T, I, Z, W, L
|
|
Keyword string `json:"keyword" form:"keyword" query:"keyword"`
|
|
}
|