Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

glennliao/apijson-go-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

截图

./doc/access.png ./doc/request.png

使用

main.go

package main

import (
	"github.com/glennliao/apijson-go-ui"
	"github.com/glennliao/apijson-go/db"
	_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
	"github.com/gogf/gf/v2/frame/g"
)

func main() {
	db.Init()
	s := g.Server()
	apijson_go_ui.Handler(s)
	s.Run()
}

config.toml

[server]
  address = ":8090"
  dumpRouterMap = false
  debug = false

[logger]
  level = "info"

[database.logger]
  level = "all"
  stdout = true

[database.default]
  debug = true
  timezone = "Asia/Shanghai"
  link = "mysql:root:root@tcp(192.168.31.70:3306)/apijson_go_todo?charset=utf8mb4&parseTime=True&loc=Local"

然后访问 http://127.0.0.1:8090/ui/index.html

About

apijson-go ui界面配置

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published