<?php
namespace app\api\validate;

use think\Validate;

class Money extends Validate
{
    protected $rule =   [
        'type_name'  => 'require|string',
        'type'     => 'require|number',
        'bank_account'  => 'require',
        'change'        => 'require|gt:0',
          
    ];
    
    protected $message  =   [
        'type_name'      => '参数有误',
        'type'         => '参数有误',
        'bank_account' => '参数有误',   
        'change'        => '参数有误',
    ];


 
    protected $scene = [
        'add'  =>  ['type_name','type','bank_account', 'change'],
        'edit' => ['id','type_name','type','bank_account', 'change'],
    ]; 
}