You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
373 B

package dao
import (
"context"
"errors"
"go-common/app/interface/openplatform/seo/conf"
)
// Sitemap 生成站点地图
func (d *Dao) Sitemap(c context.Context, host string) (res []byte, err error) {
s := conf.GetSitemap(host)
if s == nil || s.Url == "" {
err = errors.New(host + " sitemap config not exist")
return
}
res, err = d.GetUrl(c, s.Url)
return
}