51 lines
964 B
PHP
51 lines
964 B
PHP
<?php
|
|
/**
|
|
* @usage 商户管理
|
|
* @
|
|
* @author 刘孝全
|
|
*/
|
|
namespace app\admin\model;
|
|
use think\model;
|
|
use think\facade\Db;
|
|
|
|
/**
|
|
* 商户管理model
|
|
*/
|
|
class Merchant extends Model
|
|
{
|
|
/**
|
|
* 店铺类型.
|
|
*
|
|
*@param int $page 当前页数
|
|
*@param int $limit 获取记录行数
|
|
*
|
|
*@return Array $list
|
|
*/
|
|
public function GetType($offset,$limit){
|
|
$rows = empty($limit) ? get_config('app . page_size') : $limit;
|
|
|
|
$where = [];
|
|
$list = self::where($where)
|
|
->field('id,user_id,title,content,create_time,status,is_read,read_time')
|
|
->page($offset)
|
|
->limit($limit)
|
|
->select();
|
|
|
|
return $list;
|
|
}
|
|
|
|
/**
|
|
* @ 店铺类型说明
|
|
*
|
|
* return string
|
|
*/
|
|
public function GetDescription(){}
|
|
|
|
/**
|
|
* @ 店铺保证金
|
|
*
|
|
* return list
|
|
*/
|
|
public function Getdeposit(){}
|
|
|
|
} |