parent
4b0283071a
commit
1f65e5c2d4
@ -0,0 +1,30 @@ |
||||
<?php |
||||
// +---------------------------------------------------------------------- |
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] |
||||
// +---------------------------------------------------------------------- |
||||
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. |
||||
// +---------------------------------------------------------------------- |
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 |
||||
// +---------------------------------------------------------------------- |
||||
// | Author: CRMEB Team <admin@crmeb.com> |
||||
// +---------------------------------------------------------------------- |
||||
|
||||
|
||||
namespace app\common\dao\user; |
||||
|
||||
|
||||
use app\common\dao\BaseDao; |
||||
use app\common\model\user\UserAssetsShare; |
||||
|
||||
class UserAssetsShareDao extends BaseDao |
||||
{ |
||||
protected function getModel(): string |
||||
{ |
||||
return UserAssetsShare::class; |
||||
} |
||||
|
||||
public function add($uid, $spread_uid, $old_spread_uid, $admin_id = 0) |
||||
{ |
||||
$this->create(compact('uid', 'spread_uid', 'admin_id', 'old_spread_uid')); |
||||
} |
||||
} |
@ -0,0 +1,31 @@ |
||||
<?php |
||||
// +---------------------------------------------------------------------- |
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] |
||||
// +---------------------------------------------------------------------- |
||||
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. |
||||
// +---------------------------------------------------------------------- |
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 |
||||
// +---------------------------------------------------------------------- |
||||
// | Author: CRMEB Team <admin@crmeb.com> |
||||
// +---------------------------------------------------------------------- |
||||
|
||||
|
||||
namespace app\common\model\user; |
||||
|
||||
|
||||
use app\common\model\BaseModel; |
||||
|
||||
class UserAssetsShare extends BaseModel |
||||
{ |
||||
|
||||
public static function tablePk(): ?string |
||||
{ |
||||
return 'uid'; |
||||
} |
||||
|
||||
public static function tableName(): string |
||||
{ |
||||
return 'user_assets_share'; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue