refactor platform account and access models
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user