MCPcopy
hub / github.com/awake1t/linglong / DeleteFinger

Function DeleteFinger

routers/api/v1/finger.go:123–144  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

121}
122
123func DeleteFinger(c *gin.Context) {
124
125 id := com.StrTo(c.Param("id")).MustInt()
126 valid := validation.Validation{}
127 valid.Required(id, "id").Message("id不能为空")
128
129 code := e.INVALID_PARAMS
130 if !valid.HasErrors() {
131
132 //删除任务结果记录
133 models.DeleteFinger(id)
134 code = e.SUCCESS
135
136 }
137
138 c.JSON(http.StatusOK, gin.H{
139 "code": code,
140 "msg": e.GetMsg(code),
141 "data": make(map[string]string),
142 })
143
144}

Callers

nothing calls this directly

Calls 2

DeleteFingerFunction · 0.92
GetMsgFunction · 0.92

Tested by

no test coverage detected