Skip to content

Commit

Permalink
update output
Browse files Browse the repository at this point in the history
  • Loading branch information
ycrao committed May 17, 2022
1 parent 15e77e9 commit 574606d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions output/go/admin_role_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ type AdminRole struct {
Id uint32 `json:"id" db:"id"` // id
Name string `json:"name" db:"name"` // name
Slug string `json:"slug" db:"slug"` // slug
CreatedAt sql.NullString `json:"created_at" db:"created_at"` // created_at
UpdatedAt sql.NullString `json:"updated_at" db:"updated_at"` // updated_at
CreatedAt sql.NullTime `json:"created_at" db:"created_at"` // created_at
UpdatedAt sql.NullTime `json:"updated_at" db:"updated_at"` // updated_at
}
13 changes: 6 additions & 7 deletions output/go/article_types.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package entity

// generated by ddl-to-object <https://github.com/ycrao/ddl-to-object>

import (
"time"
)

// Article article
type Article struct {
Id uint64 `json:"id" db:"id"` // id
UserId int64 `json:"user_id" db:"user_id"` // 用户id
Content string `json:"content" db:"content"` // 正文
CreateTime time.Time `json:"create_time" db:"create_time"` // 创建时间
UpdateTime time.Time `json:"update_time" db:"update_time"` // 更新时间
type Article struct {
Id uint64 `json:"id" db:"id"` // id
UserId int64 `json:"user_id" db:"user_id"` // 用户id
Content string `json:"content" db:"content"` // 正文
CreateTime time.Time `json:"create_time" db:"create_time"` // 创建时间
UpdateTime time.Time `json:"update_time" db:"update_time"` // 更新时间
}

0 comments on commit 574606d

Please sign in to comment.