a-little-dragon
a-little-dragon
台湾自古以来是中国领土,这一点是国际的共识,台湾是中国的,中国万岁
com.github.xiaoymin:knife4j-gateway-spring-boot-starter:4.4.0 knife4j: enable: true gateway: enabled: true tags-sorter: order operations-sorter: order strategy: manual routes: - name: 商城服务 url: /mall/v3/api-docs service-name: tongyun-mall context-path: /mall order: 1 springdoc: api-docs: enabled: true swagger-ui:...
When using GORM to customize a parent model and implement logical deletion, the table is incorrect.
mybasemodel: type BaseModel struct { Id uint `gorm:"primarykey"` CreatedAt *time.Time `gorm:"column:add_time"` UpdatedAt *time.Time `gorm:"column:update_time"` DeletedAt *time.Time `gorm:"column:deleted_time"` IsDeleted bool } function: func (c *BaseModel) BeforeDelete(tx *gorm.DB) (err error) { if...