models设计

2020-07-22  本文已影响0人  2020路飞

按照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
上一篇 下一篇

猜你喜欢

热点阅读