美文网首页
models设计

models设计

作者: 2020路飞 | 来源:发表于2020-07-22 11:51 被阅读0次

按照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

相关文章

网友评论

      本文标题:models设计

      本文链接:https://www.haomeiwen.com/subject/vxuzkktx.html