查询分发策略模板
This commit is contained in:
parent
ffa014608f
commit
11a8963fc5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue