按照item设计class,
根据业务场景调用。
Video model
class Video {
constructor() {
this.type = "";
this.id = "";
this.title = "";
this.author = null;
this.pic = "";
this.content = "";
this.comment_count = "";
this.vote_count = "";
}
}
index 引用
export {
Author
} from './Author'
export {
Video,
createVideoByRecommend,
createVideoBySearch,
createVideoByRanking
} from './Video'
截屏2020-07-22上午11.50.57.png
网友评论