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.

59 lines
1.1 KiB

5 years ago
const AV = require('../lib/av-live-query-weapp-min');
//数据储存模板--分数
class Grade extends AV.Object {
get mark() {
return this.get('mark');
5 years ago
}
set mark(value) {
this.set('mark', value);
}
get student(){
return this.get("student");
}
set student(value){
this.set("student". value);
}
get class() {
return this.get('class');
}
set class(value){
this.set("class", value);
}
get content(){
return this.get("content");
}
set content(value) {
this.set('content', value);
}
get date(){
return this.get("date");
}
set date(value){
this.set("date", value)
}
add_mark(value){
this.increment("mark",value);
}
get edu_course_id(){
return this.get("edu_course_id");
}
set edu_course_id(value){
this.set("edu_course_id", value);
}
get presence(){
return this.get("presence");
}
set presence(value){
this.set("presence", value)
}
get edu_account_login(){
return this.get("edu_account_login");
}
set edu_account_login(value){
this.set("edu_account_login", value);
5 years ago
}
}
AV.Object.register(Grade, 'Grade');
module.exports = Grade;