Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
xufqing committed Oct 23, 2020
1 parent 4d6cb74 commit b53abe4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/v1/system/sys_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func GetUsers(c *gin.Context) {
resp.PageInfo = req.PageInfo
// 设置数据列表
resp.DataList = respStruct
resp.Success = true
response.SuccessWithData(resp)

//var respStruct []response.UserListResp
Expand Down
1 change: 0 additions & 1 deletion dto/response/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type PageInfo struct {
// 带分页数据封装
type PageData struct {
PageInfo
Success bool `json:"success"`
DataList interface{} `json:"data"` // 数据列表
}

Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func main() {
if len(os.Args) > 1 {
if os.Args[1] == "init" {
initialize.InitData()
fmt.Println("数据初始化成功!")
os.Exit(1)
}
}
// 启动服务器
Expand Down

0 comments on commit b53abe4

Please sign in to comment.