UNPKG

@tnwx/commons

Version:

TTNWX 微信系开发脚手架之公共模块

38 lines 878 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class News { static getInstantiationNews(title, description, picUrl, url) { let news = new News(); news.title = title; news.description = description; news.picUrl = picUrl; news.url = url; return news; } get getTitle() { return this.title; } set setTitle(title) { this.title = title; } get getDescription() { return this.description; } set setDescription(description) { this.description = description; } get getPicUrl() { return this.picUrl; } set setPicUrl(picUrl) { this.picUrl = picUrl; } get getUrl() { return this.url; } set setUrl(url) { this.url = url; } } exports.News = News; //# sourceMappingURL=News.js.map