2024-10-18 14:41:55 +08:00
|
|
|
package main
|
|
|
|
|
2024-10-18 17:21:19 +08:00
|
|
|
import (
|
|
|
|
"github.com/Superdanda/hade/framework/gin"
|
|
|
|
"github.com/Superdanda/hade/provider/demo"
|
|
|
|
)
|
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
|
|
|
}
|