package model import ( "context" "icloudapp.cn/tools/entity" "icloudapp.cn/tools/service" ) type UserPoster struct { ctx context.Context } func NewUserPoster(ctx context.Context) *UserPoster { return &UserPoster{ctx: ctx} } func (p *UserPoster) Info(posterID int64) (entity.UserPosterInfo, error) { sPoster := service.NewPoster(p.ctx) return sPoster.InfoByID(posterID) } func (p *UserPoster) InfoByUUID(uuid int64) (entity.UserPosterInfo, error) { sPoster := service.NewPoster(p.ctx) return sPoster.InfoByUUID(uuid) }