Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵成彬(PHP)
/
Minilive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 731dabc6
authored
Apr 22, 2020
by
Liu Lida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Models/MiniLiveRoom
1 parent
46cbca21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
1 deletions
Models/MiniLiveCategory.php
Models/MiniLiveRoom.php
Models/MiniLiveCategory.php
0 → 100644
View file @
731dabc
<?php
/**
* @controllerDes:直播分类
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 16:50
*/
namespace
Lestore\Minilive\Models
;
use
core\base\ModelBase
;
class
MiniLiveCategory
extends
ModelBase
{
/**
* 唯一标识
* @var integer
* @Primary
* @Identity
* @Column(type="integer", length=11, nullable=false)
*/
public
$id
;
/**
* 直播分类,名
* @var string
* @Column(type="string", length=50, nullable=false)
*/
public
$category_name
;
/**
* 分类父id
* @var integer
* @Column(type="integer", length=11, nullable=false)
*/
public
$pid
;
/**
* 显示状态
* @var integer
* @Column(type="integer", length=1, nullable=false)
*/
public
$status
;
/**
* 是否删除
* @var integer
* @Column(type="integer", length=1, nullable=false)
*/
public
$is_delete
;
/**
* 创建时间
* @var string
* @Column(type="string", nullable=false)
*/
public
$created_at
;
/**
* 更新时间
* @var string
* @Column(type="string", nullable=false)
*/
public
$updated_at
;
/**
* Initialize method for model.
*/
public
function
initialize
()
{
$this
->
setSource
(
'ld_mini_live_message'
);
parent
::
initialize
();
}
/**
* Returns table name mapped in the model.
*
* @return string
*/
public
function
getSource
()
{
return
'ld_mini_live_message'
;
}
/**
* Independent Column Mapping.
* Keys are the real names in the table and the values their names in the application
*
* @return array
*/
public
function
columnMap
()
{
return
[
'id'
=>
'id'
,
'category_name'
=>
'category_name'
,
'pid'
=>
'pid'
,
'status'
=>
'status'
,
'is_delete'
=>
'is_delete'
,
'created_at'
=>
'created_at'
,
'updated_at'
=>
'updated_at'
];
}
}
\ No newline at end of file
Models/MiniLiveRoom.php
View file @
731dabc
<?php
<?php
/**
/**
* @controllerDes:
* @controllerDes:
直播房间
* @author: Lyda <damonlld@163.com>
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 15:43
* @createTime: 2020/4/22 15:43
*/
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment