UNPKG

yg-tools

Version:

some convenient APIs and Methods for Youngon

63 lines (62 loc) 1.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Resume = void 0; var Resume = /** @class */ (function () { function Resume(option) { var _this = this; this.sex = ''; this.name = ''; this.work = []; this.email = ''; this.phone = ''; this.skill = []; this.stuid = ''; this.demand = ''; this.nation = ''; this.college = ''; this.birthday = ''; this.softlang = []; this.department = ''; this.majorclass = ''; this.nativeplace = ''; this.selfcomment = []; this.activityapply = []; this.computermaster = 0; this.departmentreason = ''; if (option) { var keys_1 = [ 'sex', 'name', 'work', 'email', 'phone', 'skill', 'stuid', 'demand', 'nation', 'college', 'birthday', 'softlang', 'department', 'majorclass', 'nativeplace', 'selfcomment', 'activityapply', 'computermaster', 'departmentreason' ]; Object.keys(option).forEach(function (key) { if (keys_1.includes(key)) { // @ts-ignore _this[key] = option[key]; } }); } } Resume.createResume = function (option) { return new Resume(option); }; return Resume; }()); exports.Resume = Resume; exports.default = Resume;