|
@@ -33,7 +33,7 @@ func (r *ccIpListRepository) GetCcIpList(ctx context.Context, serverId int64) ([
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
- return req, r.DBWithName(ctx,"cdn").Table("cloud_ip_items").Where("listId = ? AND sourceCategory = ?", ipListId, "cc").Select("value,type, reason").Scan(&req).Error
|
|
|
+ return req, r.DBWithName(ctx,"cdn").Table("cloud_ip_items").Where("listId = ? AND sourceCategory = ?", ipListId, "cc").Order("id desc").Select("value,type, reason").Scan(&req).Error
|
|
|
}
|
|
|
|
|
|
func (r *ccIpListRepository) GetHttpWebId(ctx context.Context, serverId int64) (int64, error) {
|