@tnwx/accesstoken
Version:
TNWX 微信系开发脚手架之微信 accesstoken
61 lines • 1.5 kB
JavaScript
"use strict";
/**
* @author Javen
* @copyright javendev@126.com
* @description ApiConfig
*/
Object.defineProperty(exports, "__esModule", { value: true });
class ApiConfig {
constructor(appId, appScrect, token, encryptMessage = false, encodingAesKey, corpId) {
this.appId = appId;
this.corpId = corpId;
this.appScrect = appScrect;
this.encryptMessage = encryptMessage;
this.encodingAesKey = encodingAesKey;
this.token = token;
}
get getToken() {
return this.token;
}
set setToken(token) {
this.token = token;
}
get getAppId() {
return this.appId;
}
set setAppId(appId) {
this.appId = appId;
}
get getCorpId() {
return this.corpId;
}
set setCorpId(corpId) {
this.corpId = corpId;
}
get getTicket() {
return this.ticket;
}
set setTicket(ticket) {
this.ticket = ticket;
}
get getAppScrect() {
return this.appScrect;
}
set setAppScrect(appScrect) {
this.appScrect = appScrect;
}
get getEncryptMessage() {
return this.encryptMessage;
}
set setEncryptMessage(encryptMessage) {
this.encryptMessage = encryptMessage;
}
get getEncodingAesKey() {
return this.encodingAesKey;
}
set setEncodingAesKey(encodingAesKey) {
this.encodingAesKey = encodingAesKey;
}
}
exports.ApiConfig = ApiConfig;
//# sourceMappingURL=ApiConfig.js.map