|
|
|
@ -18,12 +18,6 @@ func Settdb(w http.ResponseWriter, r *http.Request) { |
|
|
|
// 数据库初始化
|
|
|
|
db.Init() |
|
|
|
sclst := db.GetlScList() |
|
|
|
|
|
|
|
// 打印查询结果
|
|
|
|
// for _, sc := range sclst {
|
|
|
|
// fmt.Printf(&sc.Id, &sc.Scname, &sc.Addr, &sc.Port, &sc.Token, &sc.Status)
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
scresp := ScJson{ |
|
|
|
Message: "success", |
|
|
|
|