This commit is contained in:
aozhiwei 2024-11-11 14:48:19 +08:00
parent 3a89491530
commit f69d584bb3

View File

@ -1,6 +1,9 @@
package mission
import (
"main/mt"
"main/common"
"main/constant"
"github.com/gin-gonic/gin"
)
@ -8,4 +11,11 @@ type MissionApi struct {
}
func (this *MissionApi) List(c *gin.Context) {
s := c.MustGet(constant.SESSION_KEY).(common.Session)
if s == nil {
return
}
mt.Table.Task.Traverse(func (taskMeta *mt.Task) bool {
return true
})
}