forked from JointCloud/pcm-coordinator
cloud app重启接口实现
Signed-off-by: devad <cossjie@foxmail.com>
This commit is contained in:
parent
ab602b43a6
commit
3ad235d75e
|
@ -28,7 +28,7 @@ func (l *RestartListLogic) RestartList(in *pcmCore.ApplyListReq) (*pcmCore.Apply
|
|||
result := pcmCore.ApplyListResp{
|
||||
InfoList: make([]*pcmCore.ApplyInfo, 0),
|
||||
}
|
||||
l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName, c.ns_id as namespace,c.name as name FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'WaitRestart' and sppi.id = c.participant_id").Scan(&result.InfoList)
|
||||
l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName, c.ns_id as namespace,c.name as name , c.kind as kind FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'WaitRestart' and sppi.id = c.participant_id").Scan(&result.InfoList)
|
||||
if len(result.InfoList) != 0 {
|
||||
l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Issued", "WaitRestart")
|
||||
}
|
||||
|
|
|
@ -296,7 +296,8 @@ message ApplyInfo{
|
|||
string participantName = 1;
|
||||
string yamlString = 2;
|
||||
string namespace =3;
|
||||
string name =4;
|
||||
string name = 4;
|
||||
string kind = 5;
|
||||
}
|
||||
|
||||
// participant 参与者
|
||||
|
|
Loading…
Reference in New Issue