ReportUserChargeRecordRequest.php 586 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Http\Requests;
  3. class ReportUserChargeRecordRequest extends Request
  4. {
  5. /**
  6. * Get the validation rules that apply to the request.
  7. *
  8. * @return array
  9. */
  10. public function rules()
  11. {
  12. return [
  13. 'order_no' => 'required|string|exists:orders,trade_no',
  14. 'uid' => 'required|integer|exists:users,id',
  15. 'status' => 'required|integer',
  16. 'type' => 'string',
  17. 'content' => 'string',
  18. 'config_percent' => 'numeric',
  19. 'report_percent' => 'numeric',
  20. ];
  21. }
  22. }