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