yg-tools
Version:
some convenient APIs and Methods for Youngon
39 lines (38 loc) • 1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Duty = void 0;
var Duty = /** @class */ (function () {
function Duty(options) {
/**
* 是否参与值班 0表示不参与值班, 1表示参与值班
*/
this.state = 0;
/**
* 值班星期的集合
*/
this.week = [];
/**
* 值班课节的集合
*/
this.class = [];
/**
* 本周值班记录集合
*/
this.dutydate = [];
if (options) {
var state = options.state, week = options.week, dutydate = options.dutydate;
this.state = state;
this.week = week;
this.class = options.class;
if (dutydate) {
this.dutydate = dutydate;
}
}
}
Duty.createDuty = function (options) {
return new Duty(options);
};
return Duty;
}());
exports.Duty = Duty;
exports.default = Duty;