16 lines
370 B
Go
16 lines
370 B
Go
package videoser
|
|
|
|
import (
|
|
"context"
|
|
"videoweb/pub/common/srvdef"
|
|
"videoweb/pub/models/videocreatermod"
|
|
|
|
"go.mongodb.org/mongo-driver/bson"
|
|
)
|
|
|
|
func GetVideoCreatorById(ctx context.Context, id int64) (*videocreatermod.VideoCreaterInfo, *srvdef.SrvErr) {
|
|
return videocreatermod.FindOneVideoCreaterInfo(ctx, bson.M{
|
|
videocreatermod.FN.VideoCreaterInfo.Id: id,
|
|
})
|
|
}
|