Browse Source

数据模型

pull/1/head
pengda 9 months ago
parent
commit
783a104933
  1. 23
      model/mCase.php
  2. 16
      model/mUser.php
  3. 18
      model/mUserCase.php

23
model/mCase.php

@ -0,0 +1,23 @@
<?php
/**
*
*/
include_once(SERVER_ROOT."/model/mBase.php");
class mCase extends mBase {
private $obj;
private $tbl;
private $case_herb_tbl;
private $herb_tbl;
private $collect_log_tbl;
public function __construct() {
$this->obj = new dCase();
$this->tbl = 'tcm_case';
$this->case_herb_tbl = 'tcm_case_herb';
$this->herb_tbl = 'tcm_herb';
$this->collect_log_tbl = 'tcm_collect_log';
}
}

16
model/mUser.php

@ -0,0 +1,16 @@
<?php
/**
*
*/
include_once(SERVER_ROOT."/model/mBase.php");
class mUser extends mBase {
private $obj;
private $tbl;
public function __construct() {
$this->obj = new dUser();
$this->tbl = 'tcm_user';
}
}

18
model/mUserCase.php

@ -0,0 +1,18 @@
<?php
/**
*
*/
include_once(SERVER_ROOT."/model/mBase.php");
include_once(SERVER_ROOT."/vendor/mpdf/mpdf/mpdf.php");
class mUserCase extends mBase {
private $obj;
private $tbl;
private $user_herb_tbl;
public function __construct() {
$this->obj = new dUserCase();
$this->tbl = 'tcm_user_case';
$this->user_herb_tbl = 'tcm_user_herb';
}
}
Loading…
Cancel
Save