21 lines
504 B
PHP
21 lines
504 B
PHP
<?php
|
|
|
|
namespace app\common\logic;
|
|
|
|
use app\common\model\SysCurrency;
|
|
use app\common\traits\crud\CrudLogicTrait;
|
|
|
|
class SysCurrencyLogic
|
|
{
|
|
use CrudLogicTrait;
|
|
|
|
/**
|
|
* 指定当前要操作的模型
|
|
*/
|
|
protected string $modelClass = SysCurrency::class;
|
|
|
|
public function getList()
|
|
{
|
|
return SysCurrency::where('status', 1)->get(['id', 'country_id', 'currency_code', 'currency_name', 'currency_symbol', 'exchange_rate', 'float_percent_up', 'float_percent_down']);
|
|
}
|
|
} |