Browse Source
Merge branch 'phoenix' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into phoenix
Merge branch 'phoenix' of http://120.24.33.109:11081/hyzjshwo/lanzu_api_hyperf into phoenix
# Conflicts: # config/routes.phpmaster
11 changed files with 137 additions and 5 deletions
-
17app/Constants/v3/Shipping.php
-
25app/Controller/v3/OrderOnlineController.php
-
5app/Model/v3/Order.php
-
4app/Model/v3/OrderGoods.php
-
34app/Model/v3/OrderMain.php
-
37app/Request/v3/OrderOnlineDetailRequest.php
-
2app/Request/v3/UserBindTelRequest.php
-
2app/Request/v3/VerifyCodeRequest.php
-
11app/Service/v3/Implementations/OrderOnlineService.php
-
2app/Service/v3/Interfaces/OrderOnlineServiceInterface.php
-
3config/routes.php
@ -0,0 +1,17 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Constants\v3; |
||||
|
|
||||
|
use Hyperf\Constants\AbstractConstants; |
||||
|
use Hyperf\Constants\Annotation\Constants; |
||||
|
|
||||
|
/** |
||||
|
* @Constants |
||||
|
*/ |
||||
|
class Shipping extends AbstractConstants |
||||
|
{ |
||||
|
/** |
||||
|
* @Message("服务站配送") |
||||
|
*/ |
||||
|
const TYPE_LANZU = 1; |
||||
|
} |
||||
@ -0,0 +1,37 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Request\v3; |
||||
|
|
||||
|
use App\Request\BaseFormRequest; |
||||
|
|
||||
|
class OrderOnlineDetailRequest extends BaseFormRequest |
||||
|
{ |
||||
|
|
||||
|
/** |
||||
|
* Get the validation rules that apply to the request. |
||||
|
*/ |
||||
|
public function rules(): array |
||||
|
{ |
||||
|
return [ |
||||
|
'order_id' => 'required|nonempty|integer', |
||||
|
'user_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