Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add applicationPassword & some rest-api compatiable with wordpress rest-api #351

Closed
wants to merge 14 commits into from
Closed
2 changes: 1 addition & 1 deletion cmd/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func main() {
g.GenerateModel("category", gen.FieldType("type", "consts.CategoryType")),
g.GenerateModel("comment", gen.FieldType("type", "consts.CommentType"), gen.FieldType("status", "consts.CommentStatus")),
g.GenerateModel("comment_black"),
g.GenerateModel("flyway_schema_history"),
g.GenerateModel("journal", gen.FieldType("type", "consts.JournalType")),
g.GenerateModel("link"),
g.GenerateModel("log", gen.FieldType("type", "consts.LogType")),
Expand All @@ -57,6 +56,7 @@ func main() {
g.GenerateModel("tag"),
g.GenerateModel("theme_setting"),
g.GenerateModel("user", gen.FieldType("mfa_type", "consts.MFAType")),
g.GenerateModel("application_password"),
)

// apply diy interfaces on structs or table models
Expand Down
4 changes: 4 additions & 0 deletions consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ var (
BuildTime string
BuildCommit string
)

const (
LocalDateTimeFormat = "2006-01-02T15:04:05"
)
359 changes: 359 additions & 0 deletions dal/application_password.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading