Merge pull request 'merge' (#4) from feature/template into master
Reviewed-on: http://192.168.10.243:3000/owrainfo/confirms/pulls/4
This commit was merged in pull request #4.
This commit is contained in:
@@ -35,11 +35,11 @@ defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.
|
||||
*/
|
||||
defined('SECOND') || define('SECOND', 1);
|
||||
defined('MINUTE') || define('MINUTE', 60);
|
||||
defined('HOUR') || define('HOUR', 3600);
|
||||
defined('DAY') || define('DAY', 86400);
|
||||
defined('WEEK') || define('WEEK', 604800);
|
||||
defined('MONTH') || define('MONTH', 2_592_000);
|
||||
defined('YEAR') || define('YEAR', 31_536_000);
|
||||
defined('HOUR') || define('HOUR', 3600);
|
||||
defined('DAY') || define('DAY', 86400);
|
||||
defined('WEEK') || define('WEEK', 604800);
|
||||
defined('MONTH') || define('MONTH', 2_592_000);
|
||||
defined('YEAR') || define('YEAR', 31_536_000);
|
||||
defined('DECADE') || define('DECADE', 315_360_000);
|
||||
|
||||
/*
|
||||
@@ -67,13 +67,23 @@ defined('DECADE') || define('DECADE', 315_360_000);
|
||||
| http://tldp.org/LDP/abs/html/exitcodes.html
|
||||
|
|
||||
*/
|
||||
defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors
|
||||
defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error
|
||||
defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error
|
||||
defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found
|
||||
defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
||||
defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
||||
defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input
|
||||
defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error
|
||||
defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
||||
defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|
||||
|
||||
|
||||
/**
|
||||
* ncloud url
|
||||
*/
|
||||
define('NCLOUD_OBJECT_STORAGE_URL', 'https://kr.object.ncloudstorage.com/confirms-object');
|
||||
define('NCLOUD_S3_KEY', 'ncp_iam_BPAMKR3l50hXJiQ6qpSP');
|
||||
define('NCLOUD_S3_SECRET', 'ncp_iam_BPKMKRW2GU59UE59I1QftVGst6NJgnmbSc');
|
||||
define('NCLOUD_S3_BUCKET', 'confirms-object');
|
||||
define('NCLOUD_S3_ENDPOINT', 'https://kr.object.ncloudstorage.com');
|
||||
@@ -43,6 +43,44 @@ $routes->group('board', ['namespace' => 'App\Controllers\Board'], function ($rou
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 아파트단지 DB구축 그룹
|
||||
*/
|
||||
$routes->group('article', ['namespace' => 'App\Controllers\Article'], function ($routes) {
|
||||
// 아파트단지DB구축현황
|
||||
$routes->get('apt/lists', 'Apt::lists');
|
||||
$routes->get('apt/detail/(:num)', 'Apt::detail/$1');
|
||||
|
||||
// 관할포인트 인쇄
|
||||
$routes->get('apt/print', 'Apt::print');
|
||||
|
||||
|
||||
/** API - 아파트단지 */
|
||||
$routes->get('apt/getAptLists', 'Apt::getAptLists');
|
||||
$routes->post('apt/saveAptMemo', 'Apt::saveAptMemo');
|
||||
$routes->post('apt/chgAptDamdang', 'Apt::chgAptDamdang');
|
||||
$routes->post('apt/chgAptVideoTarget', 'Apt::chgAptVideoTarget');
|
||||
$routes->post('apt/chkTakeAptPhotoCnt', 'Apt::chkTakeAptPhotoCnt');
|
||||
$routes->get('apt/excel', 'Apt::excel');
|
||||
|
||||
/** API - 아파트단지 상세 */
|
||||
$routes->post('apt/saveKeeper', 'Apt::saveKeeper');
|
||||
$routes->post('apt/saveCoordinate', 'Apt::saveCoordinate');
|
||||
$routes->post('apt/saveNote', 'Apt::saveNote');
|
||||
$routes->post('apt/saveVideoTarget', 'Apt::saveVideoTarget');
|
||||
$routes->post('apt/saveVideoReason', 'Apt::saveVideoReason');
|
||||
$routes->get('apt/cateJson', 'Apt::cateJson');
|
||||
$routes->post('apt/savePhoReason', 'Apt::savePhoReason');
|
||||
$routes->post('apt/saveCate', 'Apt::saveCate');
|
||||
$routes->post('apt/savePhotoView', 'Apt::savePhotoView');
|
||||
$routes->post('apt/savePhotoView', 'Apt::savePhotoView');
|
||||
$routes->post('apt/confirmAptInfo', 'Apt::confirmAptInfo');
|
||||
$routes->post('apt/resendAptInfo', 'Apt::resendAptInfo');
|
||||
|
||||
$routes->post('apt/uploadFile', 'Apt::uploadFile');
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* 실적관리 (results) 그룹
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user