1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 02:29:47 +02:00
This commit is contained in:
Xuan Sang LE
2018-08-27 20:10:53 +02:00
parent 30762988cf
commit 48ad3a30da
14 changed files with 43 additions and 34 deletions

View File

@ -1,8 +1,7 @@
PostController = BaseController:extends{
class = "PostController",
BaseController:subclass("PostController", {
registry = {},
models = { "post" }
}
})
function PostController:index(...)
local args = {...}

View File

@ -1,8 +1,8 @@
PostModel = BaseModel:extends{
BaseModel:subclass("PostModel", {
registry = {},
name = "post",
fields = {
cid = "NUMERIC",
content = "TEXT"
}
}
})