Browse Source

提交代码

tags/v1.22.4.1^2
ychao_1983 3 years ago
parent
commit
478dc4c59d
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      models/user.go

+ 6
- 0
models/user.go View File

@@ -2103,6 +2103,12 @@ func GetOrganizationsCount() (int64, error) {

}

func GetOrganizationsId() ([]int64, error) {
var ids []int64
err := x.Table("user").Where("type=1").Cols("id").Find(&ids)
return ids, err
}

func GetBlockChainUnSuccessUsers() ([]*User, error) {
users := make([]*User, 0, 10)
err := x.Where("public_key = ''").


Loading…
Cancel
Save