增加了一些数据model

smart_class
educoder_weapp 5 years ago
parent 8460e262a5
commit 600a02673d

@ -0,0 +1,40 @@
const AV = require('../lib/av-live-query-weapp-min');
//数据储存模板--分数
class Grade extends AV.Object {
get mark() {
return this.get('done');
}
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)
}
}
AV.Object.register(Grade, 'Grade');
module.exports = Grade;
Loading…
Cancel
Save