From 600a02673df95063a6befb7bc0adfa207ef1afa0 Mon Sep 17 00:00:00 2001 From: educoder_weapp Date: Fri, 18 Oct 2019 18:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=95=B0=E6=8D=AEmodel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/grade.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 model/grade.js diff --git a/model/grade.js b/model/grade.js new file mode 100644 index 0000000..2f853a7 --- /dev/null +++ b/model/grade.js @@ -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; \ No newline at end of file