查询分发策略模板

This commit is contained in:
张威 2022-12-06 17:08:58 +08:00
parent ffa014608f
commit 11a8963fc5
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func ListPropagationPolicyTemplate(c *gin.Context) {
for rows.Next() {
var ppt PropagationPolicyTemplate
err := rows.Scan(&ppt.TemplateId, &ppt.TemplateName, &ppt.Labels, &ppt.ScheduleType, &ppt.DivisionPreference, &ppt.ClusterPreference)
err := rows.Scan(&ppt.TemplateName, &ppt.Labels, &ppt.ScheduleType, &ppt.DivisionPreference, &ppt.ClusterPreference, &ppt.TemplateId)
if err != nil {
Response(c, http.StatusBadRequest, "query failed!", err)
return