Skip to content

Commit

Permalink
Merge pull request #1 from netwalker2000/fix-xorm-fieldname
Browse files Browse the repository at this point in the history
fix xorm models with wrong name, using mapping name
  • Loading branch information
pinkhello authored Jun 10, 2021
2 parents 7851b4d + b0d7966 commit b345555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/business_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

type BusinessGroup struct {
ID int64 `json:"id" xorm:"pk autoincr"`
ID int64 `json:"id" xorm:"'id' pk autoincr"`
Name string `json:"name" xorm:"VARCHAR(255) not null comment('商户名称')"`
Status string `json:"status" xorm:"VARCHAR(10) not null comment('状态|invalid|valid')"`
CreatedAt time.Time `json:"created_at" xorm:"created"`
Expand Down

0 comments on commit b345555

Please sign in to comment.