MCPcopy
hub / github.com/XiaoMi/naftis / ListTaskTmplVars

Function ListTaskTmplVars

src/api/handler/tasktmpl.go:50–56  ·  view source on GitHub ↗

ListTaskTmplVars returns variable map of specific task template.

(c *gin.Context)

Source from the content-addressed store, hash-verified

48
49// ListTaskTmplVars returns variable map of specific task template.
50func ListTaskTmplVars(c *gin.Context) {
51 var taskTmplID = cast.ToUint(c.Param("id"))
52 c.JSON(200, gin.H{
53 "code": 0,
54 "data": service.TaskTmplVar.Get("", "", "", "", 0, taskTmplID, []uint{}),
55 })
56}
57
58// AddTaskTmpls adds a task template.
59func AddTaskTmpls(c *gin.Context) {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected