|
|
|
@@ -1,8 +1,19 @@ |
|
|
|
package database |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/zeromicro/go-zero/core/logx" |
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types" |
|
|
|
"gorm.io/gorm" |
|
|
|
) |
|
|
|
|
|
|
|
type AiStorage struct { |
|
|
|
DbEngin *gorm.DB |
|
|
|
} |
|
|
|
|
|
|
|
func (s *AiStorage) getParticipants() { |
|
|
|
|
|
|
|
func (s *AiStorage) GetParticipants() { |
|
|
|
var resp types.ClusterListResp |
|
|
|
tx := s.DbEngin.Raw("select * from t_cluster where `deleted_at` IS NULL ORDER BY create_time Desc").Scan(&resp.Data) |
|
|
|
if tx.Error != nil { |
|
|
|
logx.Errorf(tx.Error.Error()) |
|
|
|
} |
|
|
|
} |