chore: stabilize lint and verify builds
This commit is contained in:
@@ -31,6 +31,7 @@ var (
|
||||
OrderQuery *orderQuery
|
||||
OrderItemQuery *orderItemQuery
|
||||
PayoutAccountQuery *payoutAccountQuery
|
||||
RechargeCodeQuery *rechargeCodeQuery
|
||||
SystemConfigQuery *systemConfigQuery
|
||||
TenantQuery *tenantQuery
|
||||
TenantInviteQuery *tenantInviteQuery
|
||||
@@ -59,6 +60,7 @@ func SetDefault(db *gorm.DB, opts ...gen.DOOption) {
|
||||
OrderQuery = &Q.Order
|
||||
OrderItemQuery = &Q.OrderItem
|
||||
PayoutAccountQuery = &Q.PayoutAccount
|
||||
RechargeCodeQuery = &Q.RechargeCode
|
||||
SystemConfigQuery = &Q.SystemConfig
|
||||
TenantQuery = &Q.Tenant
|
||||
TenantInviteQuery = &Q.TenantInvite
|
||||
@@ -88,6 +90,7 @@ func Use(db *gorm.DB, opts ...gen.DOOption) *Query {
|
||||
Order: newOrder(db, opts...),
|
||||
OrderItem: newOrderItem(db, opts...),
|
||||
PayoutAccount: newPayoutAccount(db, opts...),
|
||||
RechargeCode: newRechargeCode(db, opts...),
|
||||
SystemConfig: newSystemConfig(db, opts...),
|
||||
Tenant: newTenant(db, opts...),
|
||||
TenantInvite: newTenantInvite(db, opts...),
|
||||
@@ -118,6 +121,7 @@ type Query struct {
|
||||
Order orderQuery
|
||||
OrderItem orderItemQuery
|
||||
PayoutAccount payoutAccountQuery
|
||||
RechargeCode rechargeCodeQuery
|
||||
SystemConfig systemConfigQuery
|
||||
Tenant tenantQuery
|
||||
TenantInvite tenantInviteQuery
|
||||
@@ -149,6 +153,7 @@ func (q *Query) clone(db *gorm.DB) *Query {
|
||||
Order: q.Order.clone(db),
|
||||
OrderItem: q.OrderItem.clone(db),
|
||||
PayoutAccount: q.PayoutAccount.clone(db),
|
||||
RechargeCode: q.RechargeCode.clone(db),
|
||||
SystemConfig: q.SystemConfig.clone(db),
|
||||
Tenant: q.Tenant.clone(db),
|
||||
TenantInvite: q.TenantInvite.clone(db),
|
||||
@@ -187,6 +192,7 @@ func (q *Query) ReplaceDB(db *gorm.DB) *Query {
|
||||
Order: q.Order.replaceDB(db),
|
||||
OrderItem: q.OrderItem.replaceDB(db),
|
||||
PayoutAccount: q.PayoutAccount.replaceDB(db),
|
||||
RechargeCode: q.RechargeCode.replaceDB(db),
|
||||
SystemConfig: q.SystemConfig.replaceDB(db),
|
||||
Tenant: q.Tenant.replaceDB(db),
|
||||
TenantInvite: q.TenantInvite.replaceDB(db),
|
||||
@@ -215,6 +221,7 @@ type queryCtx struct {
|
||||
Order *orderQueryDo
|
||||
OrderItem *orderItemQueryDo
|
||||
PayoutAccount *payoutAccountQueryDo
|
||||
RechargeCode *rechargeCodeQueryDo
|
||||
SystemConfig *systemConfigQueryDo
|
||||
Tenant *tenantQueryDo
|
||||
TenantInvite *tenantInviteQueryDo
|
||||
@@ -243,6 +250,7 @@ func (q *Query) WithContext(ctx context.Context) *queryCtx {
|
||||
Order: q.Order.WithContext(ctx),
|
||||
OrderItem: q.OrderItem.WithContext(ctx),
|
||||
PayoutAccount: q.PayoutAccount.WithContext(ctx),
|
||||
RechargeCode: q.RechargeCode.WithContext(ctx),
|
||||
SystemConfig: q.SystemConfig.WithContext(ctx),
|
||||
Tenant: q.Tenant.WithContext(ctx),
|
||||
TenantInvite: q.TenantInvite.WithContext(ctx),
|
||||
|
||||
Reference in New Issue
Block a user