package plugins import ( "github.com/gin-gonic/gin" "github/fthvgb1/wp-go/models/wp" ) func NewPostPlugin(ctx *gin.Context, scene uint) *Plugin[wp.WpPosts] { p := NewPlugin[wp.WpPosts](nil, -1, nil, scene, ctx) p.Push(Digest) return p } func ApplyPlugin(p *Plugin[wp.WpPosts], post *wp.WpPosts) { p.post = post p.Next() p.index = -1 }