You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pk8f3pmu2/model/studentclassmap.js

29 lines
544 B

5 years ago
const AV = require("../..//lib/av-live-query-weapp-min")
class StudentClassMap extends AV.Object{
get class(){
return this.get("class");
}
set class(value){
this.set("class", value);
}
get user(){
return this.get("user");
}
set user(value){
this.set("user", value);
}
get mark() {
return this.get('done');
}
set mark(value) {
this.set('mark', value);
}
add_mark(value) {
this.increment(value);
}
}
AV.Object.register(StudentClassMap, "StudentClassMap");
module.exports=StudentClassMap;