go-skeletor/crontab/clear.go

26 lines
435 B
Go

package crontab
import (
"arno/skeletor/config"
"arno/skeletor/entity"
"arno/skeletor/repository"
"arno/skeletor/service"
"arno/skeletor/tool"
)
func AppClear(ctn *service.Container) string {
tool.LogJobTitle("APPCLEAR")
myconfig := config.Must(ctn)
mydb := repository.Must(ctn)
tool.Log(myconfig.AppWeburl)
var users []entity.User
mydb.Find(&users)
for _, user := range users {
tool.Log(user.Login)
}
return ""
}