|
@@ -53,7 +53,7 @@ func (r *gatewayipRepository) DeleteGatewayip(ctx context.Context, req model.Gat
|
|
|
|
|
|
func (r *gatewayipRepository) GetGatewayipByHostIdFirst(ctx context.Context, hostId int64) (string, error) {
|
|
|
var req string
|
|
|
- return req, r.DB(ctx).Where("host_id = ?", hostId).Pluck("ip", &req).Error
|
|
|
+ return req, r.DB(ctx).Model(&model.Gatewayip{}).Where("host_id = ?", hostId).Pluck("ip", &req).Error
|
|
|
}
|
|
|
|
|
|
func (r *gatewayipRepository) GetGatewayipByHostIdAll(ctx context.Context, hostId int64) (*model.Gatewayip, error) {
|