refactor platform account and access models

This commit is contained in:
david
2026-07-28 13:35:59 +08:00
parent f808f1c51f
commit bc39021c0d
20 changed files with 234 additions and 181 deletions

View File

@@ -28,11 +28,11 @@ func GetDashboardOverview() (DashboardOverview, error) {
return overview, nil
}
// ListPlatfromAccount 返回平台账号分页列表,敏感字段由接口展示层脱敏。
func ListPlatfromAccount(page, size int) ([]PlatfromAccount, int64, error) {
var list []PlatfromAccount
// ListPlatformAccount 返回平台账号分页列表,敏感字段由接口展示层脱敏。
func ListPlatformAccount(page, size int) ([]PlatformAccount, int64, error) {
var list []PlatformAccount
var total int64
databaseQuery := impl.DBService.Model(&PlatfromAccount{})
databaseQuery := impl.DBService.Model(&PlatformAccount{})
if err := databaseQuery.Count(&total).Error; err != nil {
return nil, 0, err
}