mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-03-14 05:46:26 -05:00
19 lines
333 B
Go
19 lines
333 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go-common/app/interface/main/dm/model"
|
|
"go-common/library/ecode"
|
|
)
|
|
|
|
func (s *Service) subject(c context.Context, tp int32, oid int64) (sub *model.Subject, err error) {
|
|
if sub, err = s.dao.Subject(c, tp, oid); err != nil {
|
|
return
|
|
}
|
|
if sub == nil {
|
|
err = ecode.NothingFound
|
|
}
|
|
return
|
|
}
|