docs(resource): 更新了资源的字段注释

This commit is contained in:
李东云
2023-09-20 16:43:00 +08:00
parent a532e21f02
commit a6b33ed0ab
2 changed files with 17 additions and 2 deletions

View File

@@ -13,6 +13,13 @@ namespace Singularity\HDK\Pay\Resource;
use Hyperf\Resource\Json\ResourceCollection;
/**
* Singularity\HDK\Pay\Resource\ GoodsCollection@Pay
*
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
* Powered by PhpStorm
* Created on 2023/9/20
*/
final class GoodsCollection extends ResourceCollection
{
public ?string $wrap = null;

View File

@@ -12,6 +12,14 @@ use Singularity\HDK\Pay\Enum\OrderStatus;
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
* Powered by PhpStorm
* Created on 2023/9/19
*
* @property-read string $orderNo
* @property-read string transactionId
* @property-read Money amount
* @property-read OrderStatus state
* @property-read string uid
* @property-read string payment
* @property-read string remark
*/
class Order extends JsonResource
{
@@ -23,8 +31,8 @@ class Order extends JsonResource
* @return array{
* orderNo: string,
* transactionId: string,
* amount: array{amount: numeric, currency: string},
* state: string,
* amount: Money,
* state: OrderStatus,
* uid: string,
* payment: string,
* remark: string