Skip to content

Commit

Permalink
ci(typos)
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyutang committed Jan 4, 2024
1 parent 00de9f0 commit b1792bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 9 additions & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Typo check: https://github.com/crate-ci/typos

[files]
extend-exclude = ["go.mod", "go.sum", "hack/*", "check_branch_name.sh", "*/licenses/*"]
extend-exclude = [
"go.mod",
"go.sum",
"hack/*",
"check_branch_name.sh",
"*/licenses/*",
"bootstrap.*.js",
"go.work.sum"
]

[default.extend-identifiers]
10 changes: 0 additions & 10 deletions gomall/app/order/biz/model/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ func (o Order) TableName() string {
return "order"
}

type OrderState string

const (
OrderStatePlaced OrderState = "placed"
OrderStatePayed OrderState = "payed"
OrderStateCanceled OrderState = "canceled"
OrderStateDelivered OrderState = "delivered"
OrderStateReceived OrderState = "received"
)

func ListOrder(db *gorm.DB, ctx context.Context, userId uint32) (orders []Order, err error) {
err = db.Debug().Model(&Order{}).Where(&Order{UserId: userId}).Preload("OrderItems").Find(&orders).Error
return
Expand Down

0 comments on commit b1792bc

Please sign in to comment.