dbms_init...1
This commit is contained in:
parent
92936526ab
commit
1e45d1169b
@ -46,7 +46,7 @@ class DomainController extends EquipmentController
|
|||||||
protected function index_process(): array
|
protected function index_process(): array
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
'fields' => ['clientinfo_uid', 'domain', 'price', 'status'],
|
'fields' => ['domain', 'price', 'expired_at', 'status'],
|
||||||
];
|
];
|
||||||
$this->init('index', $fields);
|
$this->init('index', $fields);
|
||||||
return parent::index_process();
|
return parent::index_process();
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -4,8 +4,8 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"width": 3000,
|
"width": 3000,
|
||||||
"height": 3000,
|
"height": 3000,
|
||||||
"scrollTop": -973.0987,
|
"scrollTop": -856.0987,
|
||||||
"scrollLeft": -848,
|
"scrollLeft": -1693,
|
||||||
"zoomLevel": 0.79,
|
"zoomLevel": 0.79,
|
||||||
"show": 511,
|
"show": 511,
|
||||||
"database": 4,
|
"database": 4,
|
||||||
@ -58,7 +58,6 @@
|
|||||||
"4BDt10BeeryoN0ZdEHIui",
|
"4BDt10BeeryoN0ZdEHIui",
|
||||||
"KtdVJCYZ3DMVnPnFGKi3P",
|
"KtdVJCYZ3DMVnPnFGKi3P",
|
||||||
"AH1dyESfueUlhcoiU6KsQ",
|
"AH1dyESfueUlhcoiU6KsQ",
|
||||||
"E2-IcGXHIgpjgyAepIg1o",
|
|
||||||
"wX0DbZb_RcK85hWv9dxcX",
|
"wX0DbZb_RcK85hWv9dxcX",
|
||||||
"w-QYHsd8nVKvDaBO9LDbp",
|
"w-QYHsd8nVKvDaBO9LDbp",
|
||||||
"19PCL5s4M6NxuV-ePUz50",
|
"19PCL5s4M6NxuV-ePUz50",
|
||||||
@ -683,7 +682,6 @@
|
|||||||
"comment": "도메인 정보",
|
"comment": "도메인 정보",
|
||||||
"columnIds": [
|
"columnIds": [
|
||||||
"XnNj7H0bnTxo_NuZm7BOs",
|
"XnNj7H0bnTxo_NuZm7BOs",
|
||||||
"rK1V9ccYa0gxVE2W98dGH",
|
|
||||||
"w404_rDrrYyt26iqY8Eur",
|
"w404_rDrrYyt26iqY8Eur",
|
||||||
"yqa1YWYVe9ZH-gXAdHtFU",
|
"yqa1YWYVe9ZH-gXAdHtFU",
|
||||||
"EcVzL-sPHB3OIUYfPrAs6",
|
"EcVzL-sPHB3OIUYfPrAs6",
|
||||||
@ -717,7 +715,7 @@
|
|||||||
"color": ""
|
"color": ""
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"updateAt": 1748826887186,
|
"updateAt": 1748938285017,
|
||||||
"createAt": 1748218895681
|
"createAt": 1748218895681
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -5145,7 +5143,7 @@
|
|||||||
"default": "",
|
"default": "",
|
||||||
"options": 8,
|
"options": 8,
|
||||||
"ui": {
|
"ui": {
|
||||||
"keys": 2,
|
"keys": 0,
|
||||||
"widthName": 73,
|
"widthName": 73,
|
||||||
"widthComment": 60,
|
"widthComment": 60,
|
||||||
"widthDataType": 60,
|
"widthDataType": 60,
|
||||||
@ -6489,7 +6487,7 @@
|
|||||||
"_AcWUYKzNJd-V0fRHq8Cx"
|
"_AcWUYKzNJd-V0fRHq8Cx"
|
||||||
],
|
],
|
||||||
"x": 2146.2084,
|
"x": 2146.2084,
|
||||||
"y": 744.0748,
|
"y": 757.4081333333332,
|
||||||
"direction": 2
|
"direction": 2
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
@ -6545,7 +6543,7 @@
|
|||||||
"_AcWUYKzNJd-V0fRHq8Cx"
|
"_AcWUYKzNJd-V0fRHq8Cx"
|
||||||
],
|
],
|
||||||
"x": 2146.2084,
|
"x": 2146.2084,
|
||||||
"y": 904.0748,
|
"y": 970.7414666666665,
|
||||||
"direction": 2
|
"direction": 2
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
@ -6573,7 +6571,7 @@
|
|||||||
"_AcWUYKzNJd-V0fRHq8Cx"
|
"_AcWUYKzNJd-V0fRHq8Cx"
|
||||||
],
|
],
|
||||||
"x": 2146.2084,
|
"x": 2146.2084,
|
||||||
"y": 824.0748,
|
"y": 864.0747999999999,
|
||||||
"direction": 2
|
"direction": 2
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
|
|||||||
@ -239,6 +239,7 @@ class CommonHelper
|
|||||||
$form = form_dropdown($field, $formOptions, $value, $extras);
|
$form = form_dropdown($field, $formOptions, $value, $extras);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'expired_at':
|
||||||
case 'billing_at':
|
case 'billing_at':
|
||||||
case 'start_at':
|
case 'start_at':
|
||||||
case 'end_at':
|
case 'end_at':
|
||||||
|
|||||||
@ -4,6 +4,7 @@ return [
|
|||||||
'label' => [
|
'label' => [
|
||||||
'clientinfo_uid' => "고객",
|
'clientinfo_uid' => "고객",
|
||||||
'domain' => "도메인",
|
'domain' => "도메인",
|
||||||
|
'expired_at' => "종료일",
|
||||||
'price' => "금액",
|
'price' => "금액",
|
||||||
'description' => "설명",
|
'description' => "설명",
|
||||||
'status' => "상태",
|
'status' => "상태",
|
||||||
|
|||||||
@ -13,7 +13,6 @@ class DomainModel extends EquipmentModel
|
|||||||
protected $primaryKey = self::PK;
|
protected $primaryKey = self::PK;
|
||||||
protected $returnType = DomainEntity::class;
|
protected $returnType = DomainEntity::class;
|
||||||
protected $allowedFields = [
|
protected $allowedFields = [
|
||||||
"clientinfo_uid",
|
|
||||||
"domain",
|
"domain",
|
||||||
"price",
|
"price",
|
||||||
"expired_at",
|
"expired_at",
|
||||||
@ -30,7 +29,6 @@ class DomainModel extends EquipmentModel
|
|||||||
throw new \Exception(__FUNCTION__ . "=> field가 array 입니다.\n" . var_export($field, true));
|
throw new \Exception(__FUNCTION__ . "=> field가 array 입니다.\n" . var_export($field, true));
|
||||||
}
|
}
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case "clientinfo_uid":
|
|
||||||
case "price":
|
case "price":
|
||||||
$rule = "required|numeric";
|
$rule = "required|numeric";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -25,15 +25,15 @@ class DomainService extends EquipmentService
|
|||||||
public function getFields(): array
|
public function getFields(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"clientinfo_uid",
|
|
||||||
"domain",
|
"domain",
|
||||||
"price",
|
"price",
|
||||||
|
"expired_at",
|
||||||
"status",
|
"status",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
public function getFilterFields(): array
|
public function getFilterFields(): array
|
||||||
{
|
{
|
||||||
return ["clientinfo_uid", 'status',];
|
return ['status',];
|
||||||
}
|
}
|
||||||
public function getBatchJobFields(): array
|
public function getBatchJobFields(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,10 +7,10 @@ class UrlRules
|
|||||||
/**
|
/**
|
||||||
* 유효한 도메인인지 확인
|
* 유효한 도메인인지 확인
|
||||||
*/
|
*/
|
||||||
public function valid_domain(string $str, string $fields, array $data): bool
|
public function valid_domain(string $value): bool
|
||||||
{
|
{
|
||||||
// 기본적인 정규식 검사 (예: example.com, sub.example.co.kr)
|
// 기본적인 정규식 검사 (예: example.com, sub.example.co.kr)
|
||||||
if (!preg_match('/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i', $str)) {
|
if (!preg_match('/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i', $value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// 실제 DNS 확인도 하고 싶다면 (옵션)
|
// 실제 DNS 확인도 하고 싶다면 (옵션)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user