From b1792bc689edde22c5fc02dc922b08db51c5a8f7 Mon Sep 17 00:00:00 2001 From: baiyutang Date: Thu, 4 Jan 2024 11:32:28 +0800 Subject: [PATCH] ci(typos) --- _typos.toml | 10 +++++++++- gomall/app/order/biz/model/order.go | 10 ---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/_typos.toml b/_typos.toml index 612065b9..932a6282 100644 --- a/_typos.toml +++ b/_typos.toml @@ -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] diff --git a/gomall/app/order/biz/model/order.go b/gomall/app/order/biz/model/order.go index d1a1e071..b1f73844 100644 --- a/gomall/app/order/biz/model/order.go +++ b/gomall/app/order/biz/model/order.go @@ -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