task data statistics

Former-commit-id: 452e9c8d48901f5cedb6dd71423a1a8794a38f4a
This commit is contained in:
zw 2024-01-22 23:43:58 +08:00
parent 94bc201d64
commit b81e3a7c67
2 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,17 @@ info(
email: "450705171@qq.com"
)
type (
tasksNumReq {
}
tasksNumResp {
totalNum int64 `json:"totalNum"`
runningNum int64 `json:"runningNum"`
completedNum int64 `json:"completedNum"`
}
)
type (
submitJobReq {
SlurmVersion string `json:"slurmVersion"`

View File

@ -23,6 +23,7 @@ info(
prefix: pcm/v1
group : core
)
service pcm {
@doc "查询P端服务列表"
@handler participantListHandler
@ -104,6 +105,10 @@ service pcm {
@handler saveHashcatHandler
post /core/saveHashcat (SaveHashcatReq)
@doc "Task Data Statistics"
@handler tasksNumHandler
get /core/tasks/num (tasksNumReq) returns (tasksNumResp)
@doc "获取hashcat"
@handler getHashcatHandler
get /core/getHashcat/:crackTaskId (getHashcatHandlerReq) returns (getHashcatHandlerResp)