dev stock stragety
This commit is contained in:
12
internal/logic/apps/home.go
Normal file
12
internal/logic/apps/home.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package apps
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func Home(c *gin.Context) {
|
||||
data := gin.H{
|
||||
"Title": "Welcome to " + c.Request.Host,
|
||||
"Message": "This is " + c.Request.Host + " index page.",
|
||||
}
|
||||
|
||||
c.HTML(200, "apps-home.html", data)
|
||||
}
|
||||
17
internal/logic/apps/stock.go
Normal file
17
internal/logic/apps/stock.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package apps
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
var (
|
||||
data = gin.H{
|
||||
"Title": "重生之我在A股开超市",
|
||||
}
|
||||
)
|
||||
|
||||
func StockHome(c *gin.Context) {
|
||||
c.HTML(200, "stock-home.html", data)
|
||||
}
|
||||
|
||||
func StrategyBy(c *gin.Context) {
|
||||
c.HTML(200, "strategy-by.html", data)
|
||||
}
|
||||
Reference in New Issue
Block a user