|
@@ -48,10 +48,10 @@ func init() {
|
|
|
ApplicationYaml.Log.Prefix,
|
|
|
)
|
|
|
c_db.InitSqlxMysql(
|
|
|
- ApplicationYaml.Mysql.Ip,
|
|
|
- ApplicationYaml.Mysql.Port,
|
|
|
ApplicationYaml.Mysql.Username,
|
|
|
ApplicationYaml.Mysql.Password,
|
|
|
+ ApplicationYaml.Mysql.Ip,
|
|
|
+ ApplicationYaml.Mysql.Port,
|
|
|
ApplicationYaml.Mysql.Dbname,
|
|
|
ApplicationYaml.Mysql.Charset,
|
|
|
)
|
|
@@ -73,7 +73,7 @@ func main() {
|
|
|
reportPrefix.POST("/page", handler.Page) // 分页查询
|
|
|
//reportPrefix.POST("/pdf", handler.Hello) // pdf下载
|
|
|
monitorPrefix := projectPrefix.Group("/monitor")
|
|
|
- monitorPrefix.POST("/save", handler.SaveDeviceMonitor)
|
|
|
+ monitorPrefix.POST("/insert", handler.SaveDeviceMonitor)
|
|
|
// 端口
|
|
|
err := router.Run(":" + ApplicationYaml.Web.Port)
|
|
|
if err != nil {
|