fix: #1918 在包含delete_at的情况下,数据源自动过滤软删除数据

This commit is contained in:
pixelmaxQM
2024-10-31 20:10:06 +08:00
parent 3452eafe4f
commit 41ba7ad6a5
6 changed files with 46 additions and 21 deletions

View File

@@ -46,11 +46,12 @@ type AutoCode struct {
}
type DataSource struct {
DBName string `json:"dbName"`
Table string `json:"table"`
Label string `json:"label"`
Value string `json:"value"`
Association int `json:"association"` // 关联关系 1 一对一 2 一对多
DBName string `json:"dbName"`
Table string `json:"table"`
Label string `json:"label"`
Value string `json:"value"`
Association int `json:"association"` // 关联关系 1 一对一 2 一对多
HasDeletedAt bool `json:"hasDeletedAt"`
}
func (r *AutoCode) Apis() []model.SysApi {