github.com/chanxuehong/wechat@v0.0.0-20230222024006-36f0325263cd/mp/shakearound/page/delete.go (about) 1 package page 2 3 import ( 4 "github.com/chanxuehong/wechat/mp/core" 5 ) 6 7 // 删除页面 8 func Delete(clt *core.Client, pageIds []int64) (err error) { 9 request := struct { 10 PageIds []int64 `json:"page_ids,omitempty"` 11 }{ 12 PageIds: pageIds, 13 } 14 15 var result core.Error 16 17 incompleteURL := "https://api.weixin.qq.com/shakearound/page/delete?access_token=" 18 if err = clt.PostJSON(incompleteURL, &request, &result); err != nil { 19 return 20 } 21 22 if result.ErrCode != core.ErrCodeOK { 23 err = &result 24 return 25 } 26 return 27 }