package wpposts import ( "fmt" "github.com/fthvgb1/wp-go/app/pkg/models" ) func PasswordProjectTitle(post *models.Posts) { post.PostTitle = fmt.Sprintf("密码保护:%s", post.PostTitle) } func PasswdProjectContent(post *models.Posts) { format := `
` post.PostContent = fmt.Sprintf(format, post.Id, post.Id) }