dbmsv4 init...3
This commit is contained in:
parent
6b000d8cad
commit
3bea89dbb9
@ -6,9 +6,9 @@ class MylogDTO extends CommonDTO
|
||||
{
|
||||
public ?int $uid = null;
|
||||
public ?int $user_uid = null;
|
||||
public ?string $title = null;
|
||||
public ?string $content = null;
|
||||
public ?string $status = null;
|
||||
public string $title = null;
|
||||
public string $content = '';
|
||||
public string $status = STATUS['AVAILABLE'];
|
||||
|
||||
public function __construct(array $datas = [])
|
||||
{
|
||||
|
||||
@ -9,14 +9,14 @@ class PaymentDTO extends CommonDTO
|
||||
public ?int $clientinfo_uid = null;
|
||||
public ?int $serviceinfo_uid = null;
|
||||
public ?int $serverpartinfo_uid = null;
|
||||
public ?string $title = null;
|
||||
public ?string $content = null;
|
||||
public ?int $amount = null;
|
||||
public ?string $billing = null;
|
||||
public ?string $billing_at = null;
|
||||
public ?int $billing_month = 0;
|
||||
public ?string $pay = null;
|
||||
public ?string $status = null;
|
||||
public string $title = '';
|
||||
public int $amount = 0;
|
||||
public string $billing = '';
|
||||
public string $billing_at = '';
|
||||
public int $billing_month = 0;
|
||||
public string $pay = '';
|
||||
public string $status = STATUS['UNPAID'];
|
||||
public string $content = null;
|
||||
|
||||
public function __construct(array $datas = [])
|
||||
{
|
||||
|
||||
@ -5,20 +5,14 @@ namespace App\DTOs;
|
||||
class UserDTO extends CommonDTO
|
||||
{
|
||||
public ?int $uid = null;
|
||||
public ?string $id = null;
|
||||
public ?string $passwd = null;
|
||||
public ?string $confirmpassword = null;
|
||||
public ?string $name = null;
|
||||
public ?string $email = null;
|
||||
public ?string $mobile = null;
|
||||
|
||||
/**
|
||||
* 검증(is_array) 통과를 위해 public array로 선언합니다.
|
||||
* get_object_vars($this) 호출 시 배열 형태로 추출됩니다.
|
||||
*/
|
||||
public string $id = '';
|
||||
public string $passwd = '';
|
||||
public string $confirmpassword = '';
|
||||
public string $name = '';
|
||||
public string $email = '';
|
||||
public string $mobile = '';
|
||||
public array $role = [];
|
||||
|
||||
public ?string $status = null;
|
||||
public string $status = STATUS['AVAILABLE'];
|
||||
|
||||
public function __construct(array $datas = [])
|
||||
{
|
||||
|
||||
@ -8,6 +8,15 @@ class MylogEntity extends CommonEntity
|
||||
{
|
||||
const PK = Model::PK;
|
||||
const TITLE = Model::TITLE;
|
||||
protected $attributes = [
|
||||
'title' => '',
|
||||
'status' => STATUS['AVAILABLE'],
|
||||
'content' => ''
|
||||
];
|
||||
public function __construct(array|null $data = null)
|
||||
{
|
||||
parent::__construct($data);
|
||||
}
|
||||
//공통부분
|
||||
//Common Function
|
||||
}
|
||||
|
||||
@ -9,6 +9,20 @@ class PaymentEntity extends CommonEntity
|
||||
{
|
||||
const PK = PaymentModel::PK;
|
||||
const TITLE = PaymentModel::TITLE;
|
||||
protected $attributes = [
|
||||
'title' => '',
|
||||
'amount' => 0,
|
||||
'billing' => "",
|
||||
'billing_at' => "",
|
||||
'billing_month' => 0,
|
||||
'pay' => "",
|
||||
'status' => STATUS['AVAILABLE'],
|
||||
'content' => ''
|
||||
];
|
||||
public function __construct(array|null $data = null)
|
||||
{
|
||||
parent::__construct($data);
|
||||
}
|
||||
final public function getUserUid(): int|null
|
||||
{
|
||||
return $this->attributes['user_uid'] ?? null;
|
||||
@ -28,15 +42,15 @@ class PaymentEntity extends CommonEntity
|
||||
}
|
||||
public function getBilling(): string
|
||||
{
|
||||
return $this->attributes['billing'];
|
||||
return $this->attributes['billing'] ?? "";
|
||||
}
|
||||
public function getAmount(): int
|
||||
{
|
||||
return $this->attributes['amount'];
|
||||
return $this->attributes['amount'] ?? 0;
|
||||
}
|
||||
public function getBillingAt(): string
|
||||
{
|
||||
return $this->attributes['billing_at'];
|
||||
return $this->attributes['billing_at'] ?? "";
|
||||
}
|
||||
public function getBillingMonth(): int
|
||||
{
|
||||
@ -44,11 +58,11 @@ class PaymentEntity extends CommonEntity
|
||||
}
|
||||
public function getPay(): string
|
||||
{
|
||||
return $this->attributes['pay'];
|
||||
return $this->attributes['pay'] ?? "";
|
||||
}
|
||||
public function getContent(): string|null
|
||||
public function getContent(): string
|
||||
{
|
||||
return $this->attributes['content'];
|
||||
return $this->attributes['content'] ?? "";
|
||||
}
|
||||
public function getCountDueAt(): string
|
||||
{
|
||||
|
||||
@ -15,7 +15,19 @@ class UserEntity extends CommonEntity
|
||||
protected $casts = [
|
||||
// 'role' => 'json-array', // 🚫 CSV 형식 저장을 위해 제거
|
||||
];
|
||||
|
||||
protected $attributes = [
|
||||
'id' => '',
|
||||
'passwd' => '',
|
||||
'name' => "",
|
||||
'email' => "",
|
||||
'mobile' => '',
|
||||
'role' => "",
|
||||
'status' => STATUS['AVAILABLE'],
|
||||
];
|
||||
public function __construct(array|null $data = null)
|
||||
{
|
||||
parent::__construct($data);
|
||||
}
|
||||
public function getID(): string
|
||||
{
|
||||
return (string) $this->attributes['id'];
|
||||
|
||||
@ -9,6 +9,15 @@ class UserSNSEntity extends CommonEntity
|
||||
{
|
||||
const PK = Model::PK;
|
||||
const TITLE = Model::TITLE;
|
||||
protected $attributes = [
|
||||
'id' => '',
|
||||
'site' => '',
|
||||
'email' => "",
|
||||
];
|
||||
public function __construct(array|null $data = null)
|
||||
{
|
||||
parent::__construct($data);
|
||||
}
|
||||
//Common Function
|
||||
public function getParent(): int|null
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user