Browse Source
Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix
master
Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix
master
9 changed files with 83 additions and 23 deletions
-
3app/Controller/v3/BalanceStatementController.php
-
7app/Controller/v3/CouponController.php
-
3app/Controller/v3/HomeController.php
-
9app/Controller/v3/OrderOnlineController.php
-
5app/Controller/v3/ShopCartController.php
-
12app/Controller/v3/UserAddressController.php
-
36app/Request/v3/UserAddressRequest.php
-
29app/Service/v3/Implementations/CouponRecService.php
-
2app/Service/v3/Interfaces/CouponRecServiceInterface.php
@ -0,0 +1,36 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
|
|||
namespace App\Request\v3; |
|||
|
|||
use App\Request\BaseFormRequest; |
|||
|
|||
class UserAddressRequest extends BaseFormRequest |
|||
{ |
|||
|
|||
/** |
|||
* Get the validation rules that apply to the request. |
|||
*/ |
|||
public function rules(): array |
|||
{ |
|||
return [ |
|||
'user_address_id' => 'required|nonempty|integer', |
|||
]; |
|||
} |
|||
|
|||
/** |
|||
* @return array |
|||
*/ |
|||
public function messages(): array |
|||
{ |
|||
return [ |
|||
'*.*' => ':attribute无效', |
|||
]; |
|||
} |
|||
|
|||
public function attributes(): array |
|||
{ |
|||
return parent::attributes(); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue