framework1/subject_controller.go

25 lines
575 B
Go
Raw Normal View History

2024-10-18 14:41:55 +08:00
package main
2024-10-18 17:21:19 +08:00
import (
2024-10-19 22:02:19 +08:00
"github.com/Superdanda/hade/app/provider/demo"
2024-10-18 17:21:19 +08:00
"github.com/Superdanda/hade/framework/gin"
)
2024-10-18 14:41:55 +08:00
func SubjectDelController(c *gin.Context) {
c.ISetOkStatus().IJson("ok SubjectDelController")
}
func SubjectUpdateController(c *gin.Context) {
c.ISetOkStatus().IJson("ok SubjectUpdateController")
}
func SubjectGetController(c *gin.Context) {
c.ISetOkStatus().IJson("ok SubjectGetController")
}
func SubjectListController(c *gin.Context) {
2024-10-18 17:21:19 +08:00
demoService := c.MustMake(demo.Key).(demo.Service)
foo := demoService.GetFoo()
c.ISetOkStatus().IJson(foo)
2024-10-18 14:41:55 +08:00
}