Request.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. using Microsoft.AspNetCore.Http;
  2. using System.ComponentModel;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace Application.Features.Config.Update;
  5. public sealed class Request
  6. {
  7. public int ID { get; init; }
  8. public BasicConfigDto Basic { get; init; } = new();
  9. public ImagesConfigDto Images { get; init; } = new();
  10. public MetaConfigDto Meta { get; init; } = new();
  11. public CompanyConfigDto Company { get; init; } = new();
  12. public AccountConfigDto Account { get; init; } = new();
  13. public EmailTemplateConfigDto EmailTemplate { get; init; } = new();
  14. public ExternalApiConfigDto External { get; init; } = new();
  15. public PaymentConfigDto Payment { get; init; } = new();
  16. public AttendanceConfigDto? Attendance { get; init; }
  17. // 기본 설정
  18. public sealed class BasicConfigDto
  19. {
  20. [MaxLength(100)]
  21. [DisplayName("사이트 이름")]
  22. public string? SiteName { get; init; }
  23. [MaxLength(100)]
  24. [DataType(DataType.Url)]
  25. [DisplayName("사이트 주소")]
  26. public string? SiteURL { get; init; }
  27. [DisplayName("최고 관리자 ID")]
  28. public string? RootID { get; init; }
  29. [MaxLength(100)]
  30. [DataType(DataType.EmailAddress)]
  31. [DisplayName("발송자 이메일")]
  32. public string? FromEmail { get; init; }
  33. [MaxLength(30)]
  34. [DisplayName("발송자 이름")]
  35. public string? FromName { get; init; }
  36. [MaxLength(200)]
  37. [DisplayName("SMTP Server")]
  38. public string? SmtpServer { get; init; }
  39. [Range(1, 65535)]
  40. [DisplayName("SMTP Port")]
  41. public int? SmtpPort { get; set; }
  42. [DisplayName("SMTP Enable SSL")]
  43. public bool SmtpEnableSSL { get; init; } = false;
  44. [MaxLength(100)]
  45. [DisplayName("SMTP Username")]
  46. public string? SmtpUsername { get; init; }
  47. [MaxLength(200)]
  48. [DataType(DataType.Password)]
  49. [DisplayName("SMTP Password")]
  50. public string? SmtpPassword { get; init; }
  51. [MaxLength(200)]
  52. [DataType(DataType.MultilineText)]
  53. [DisplayName("관리자단 접근 가능 IP")]
  54. public string? AdminWhiteIPList { get; init; }
  55. [MaxLength(200)]
  56. [DataType(DataType.MultilineText)]
  57. [DisplayName("사용자단 접근 가능 IP")]
  58. public string? FrontWhiteIPList { get; init; }
  59. [MaxLength(200)]
  60. [DisplayName("차단 시 안내문 제목")]
  61. public string? BlockAlertTitle { get; init; }
  62. [MaxLength(5000)]
  63. [DataType(DataType.MultilineText)]
  64. [DisplayName("차단 시 안내문 내용")]
  65. public string? BlockAlertContent { get; init; }
  66. [DisplayName("점검 여부")]
  67. public bool IsMaintenance { get; init; } = false;
  68. [MaxLength(5000)]
  69. [DataType(DataType.MultilineText)]
  70. [DisplayName("점검 내용")]
  71. public string? MaintenanceContent { get; init; }
  72. [Range(0, 100)]
  73. [DisplayName("쪽지 일일 발송 제한")]
  74. public int NoteDailySendLimit { get; init; } = 3;
  75. }
  76. // 이미지 경로 및 업로드 입력
  77. public sealed class ImagesConfigDto
  78. {
  79. // ====== DB에 저장/표기할 경로(문자열) ======
  80. [MaxLength(255)]
  81. [DisplayName("Favicon")]
  82. public string? FaviconPath { get; init; }
  83. [MaxLength(255)]
  84. [DisplayName("Logo-square")]
  85. public string? LogoSquarePath { get; init; }
  86. [MaxLength(255)]
  87. [DisplayName("Logo-horizontal")]
  88. public string? LogoHorizontalPath { get; init; }
  89. [MaxLength(255)]
  90. [DisplayName("og-default")]
  91. public string? OgDefaultPath { get; init; }
  92. [MaxLength(255)]
  93. [DisplayName("Twitter-image")]
  94. public string? TwitterImagePath { get; init; }
  95. [MaxLength(255)]
  96. [DisplayName("Apple-touch-icon")]
  97. public string? AppleTouchIconPath { get; init; }
  98. [MaxLength(255)]
  99. [DisplayName("App-icon-192")]
  100. public string? AppIcon192Path { get; init; }
  101. [MaxLength(255)]
  102. [DisplayName("App-icon-512")]
  103. public string? AppIcon512Path { get; init; }
  104. // ====== 업로드 입력(새 업로드용) ======
  105. [DataType(DataType.Upload)]
  106. [DisplayName("Favicon 업로드")]
  107. public IFormFile? FaviconFile { get; init; }
  108. [DataType(DataType.Upload)]
  109. [DisplayName("Logo-square 업로드")]
  110. public IFormFile? LogoSquareFile { get; init; }
  111. [DataType(DataType.Upload)]
  112. [DisplayName("Logo-horizontal 업로드")]
  113. public IFormFile? LogoHorizontalFile { get; init; }
  114. [DataType(DataType.Upload)]
  115. [DisplayName("og-default 업로드")]
  116. public IFormFile? OgDefaultFile { get; init; }
  117. [DataType(DataType.Upload)]
  118. [DisplayName("Twitter-image 업로드")]
  119. public IFormFile? TwitterImageFile { get; init; }
  120. [DataType(DataType.Upload)]
  121. [DisplayName("Apple-touch-icon 업로드")]
  122. public IFormFile? AppleTouchIconFile { get; init; }
  123. [DataType(DataType.Upload)]
  124. [DisplayName("App-icon-192 업로드")]
  125. public IFormFile? AppIcon192File { get; init; }
  126. [DataType(DataType.Upload)]
  127. [DisplayName("App-icon-512 업로드")]
  128. public IFormFile? AppIcon512File { get; init; }
  129. }
  130. // 메타 태그
  131. public sealed class MetaConfigDto
  132. {
  133. [MaxLength(255)]
  134. [DisplayName("Meta Keywords")]
  135. public string? Keywords { get; init; }
  136. [MaxLength(255)]
  137. [DisplayName("Meta Description")]
  138. public string? Description { get; init; }
  139. [MaxLength(255)]
  140. [DisplayName("Meta Author")]
  141. public string? Author { get; init; }
  142. [MaxLength(255)]
  143. [DisplayName("Meta Viewport")]
  144. public string? Viewport { get; init; }
  145. [MaxLength(255)]
  146. [DisplayName("Meta ApplicationName")]
  147. public string? ApplicationName { get; init; }
  148. [MaxLength(255)]
  149. [DisplayName("Meta Generator")]
  150. public string? Generator { get; init; }
  151. [MaxLength(255)]
  152. [DisplayName("Meta Robots")]
  153. public string? Robots { get; init; }
  154. [MaxLength(3000)]
  155. [DataType(DataType.MultilineText)]
  156. [DisplayName("Meta Adds")]
  157. public string? Adds { get; init; }
  158. }
  159. // 회사 정보
  160. public sealed class CompanyConfigDto
  161. {
  162. [MaxLength(70)]
  163. [DisplayName("상호 명")]
  164. public string? Name { get; init; }
  165. [MaxLength(100)]
  166. [DisplayName("사업자 등록 번호")]
  167. public string? RegNo { get; init; }
  168. [MaxLength(255)]
  169. [DisplayName("사업장 소재지")]
  170. public string? Address { get; init; }
  171. [MaxLength(8)]
  172. [DataType(DataType.PostalCode)]
  173. [DisplayName("우편번호")]
  174. public string? ZipCode { get; init; }
  175. [MaxLength(50)]
  176. [DisplayName("대표자 명")]
  177. public string? Owner { get; init; }
  178. [MaxLength(20)]
  179. [DisplayName("대표 전화번호")]
  180. public string? Tel { get; init; }
  181. [MaxLength(20)]
  182. [DisplayName("FAX")]
  183. public string? Fax { get; init; }
  184. [MaxLength(20)]
  185. [DisplayName("통신판매업 신고번호")]
  186. public string? RetailSaleNo { get; init; }
  187. [MaxLength(20)]
  188. [DisplayName("부가통신 사업자번호")]
  189. public string? AddedSaleNo { get; init; }
  190. [MaxLength(100)]
  191. [DisplayName("호스팅 서비스")]
  192. public string? Hosting { get; init; }
  193. [MaxLength(70)]
  194. [DisplayName("정보관리책임자")]
  195. public string? AdminName { get; init; }
  196. [MaxLength(100)]
  197. [DataType(DataType.EmailAddress)]
  198. [DisplayName("정보관리책임자 이메일")]
  199. public string? AdminEmail { get; init; }
  200. [MaxLength(200)]
  201. [DataType(DataType.Url)]
  202. [DisplayName("사이트 주소")]
  203. public string? SiteUrl { get; init; }
  204. [MaxLength(10)]
  205. [DisplayName("입금계좌 - 은행")]
  206. public string? BankCode { get; init; }
  207. [MaxLength(70)]
  208. [DisplayName("입금계좌 - 예금주")]
  209. public string? BankOwner { get; init; }
  210. [MaxLength(100)]
  211. [DisplayName("입금계좌 - 계좌번호")]
  212. public string? BankNumber { get; init; }
  213. }
  214. // 회원 설정
  215. public sealed class AccountConfigDto
  216. {
  217. [DisplayName("회원가입 시 - 가입 차단")]
  218. public bool IsRegisterBlock { get; init; } = false;
  219. [DisplayName("회원가입 시 - 이메일 인증 여부")]
  220. public bool IsRegisterEmailAuth { get; init; } = false;
  221. [Range(0, 100)]
  222. [DisplayName("회원가입 시 - 비밀번호 최소 길이")]
  223. public ushort? PasswordMinLength { get; init; }
  224. [Range(0, 100)]
  225. [DisplayName("회원가입 시 - 비밀번호 대문자 최소 길이")]
  226. public ushort? PasswordUppercaseLength { get; init; }
  227. [Range(0, 100)]
  228. [DisplayName("회원가입 시 - 비밀번호 숫자 최소 길이")]
  229. public ushort? PasswordNumbersLength { get; init; }
  230. [Range(0, 100)]
  231. [DisplayName("회원가입 시 - 비밀번호 특수문자 최소 길이")]
  232. public ushort? PasswordSpecialcharsLength { get; init; }
  233. [MaxLength(4000)]
  234. [DisplayName("회원가입 시 - 금지 이메일")]
  235. public string? DeniedEmailList { get; init; }
  236. [MaxLength(4000)]
  237. [DisplayName("회원가입 시 - 금지 별명")]
  238. public string? DeniedNameList { get; init; }
  239. [Range(0, 365)]
  240. [DisplayName("회원가입 시 - 이메일 갱신 주기")]
  241. public ushort? ChangeEmailDay { get; init; }
  242. [Range(0, 365)]
  243. [DisplayName("회원가입 시 - 별명 갱신 주기")]
  244. public ushort? ChangeNameDay { get; init; }
  245. [Range(0, 365)]
  246. [DisplayName("회원가입 시 - 한마디 갱신 주기")]
  247. public ushort? ChangeSummaryDay { get; init; }
  248. [Range(0, 365)]
  249. [DisplayName("회원가입 시 - 자기소개 갱신 주기")]
  250. public ushort? ChangeIntroDay { get; init; }
  251. [Range(0, 365)]
  252. [DisplayName("회원가입 시 - 비밀번호 갱신 주기")]
  253. public ushort? ChangePasswordDay { get; init; }
  254. [DisplayName("로그인 시 - 이메일 인증 필요")]
  255. public bool IsLoginEmailVerifiedOnly { get; init; } = false;
  256. [Range(0, 100)]
  257. [DisplayName("로그인 시 - 로그인 시도(회)")]
  258. public ushort? MaxLoginTryCount { get; init; }
  259. [Range(0, 86400)]
  260. [DisplayName("로그인 시 - 로그인 제한(초)")]
  261. public ushort? MaxLoginTryLimitSecond { get; init; }
  262. }
  263. // 알림 발송 양식
  264. public sealed class EmailTemplateConfigDto
  265. {
  266. [MaxLength(4000)]
  267. [DisplayName("회원가입 시 - 제목")]
  268. public string? RegisterEmailFormTitle { get; init; }
  269. [MaxLength(4000)]
  270. [DisplayName("회원가입 시 - 내용")]
  271. public string? RegisterEmailFormContent { get; init; }
  272. [MaxLength(4000)]
  273. [DisplayName("회원가입 완료 - 제목")]
  274. public string? RegistrationEmailFormTitle { get; init; }
  275. [MaxLength(4000)]
  276. [DisplayName("회원가입 완료 - 내용")]
  277. public string? RegistrationEmailFormContent { get; init; }
  278. [MaxLength(4000)]
  279. [DisplayName("비밀번호 재설정 - 제목")]
  280. public string? ResetPasswordEmailFormTitle { get; init; }
  281. [MaxLength(4000)]
  282. [DisplayName("비밀번호 재설정 - 내용")]
  283. public string? ResetPasswordEmailFormContent { get; init; }
  284. [MaxLength(4000)]
  285. [DisplayName("비밀번호 변경 완료 - 제목")]
  286. public string? ChangedPasswordEmailFormTitle { get; init; }
  287. [MaxLength(4000)]
  288. [DisplayName("비밀번호 변경 완료 - 내용")]
  289. public string? ChangedPasswordEmailFormContent { get; init; }
  290. [MaxLength(4000)]
  291. [DisplayName("회원탈퇴 시 - 제목")]
  292. public string? WithdrawEmailFormTitle { get; init; }
  293. [MaxLength(4000)]
  294. [DisplayName("회원탈퇴 시 - 내용")]
  295. public string? WithdrawEmailFormContent { get; init; }
  296. [MaxLength(4000)]
  297. [DisplayName("회원탈퇴 인증 - 제목")]
  298. public string? WithdrawVerifyEmailFormTitle { get; init; }
  299. [MaxLength(4000)]
  300. [DisplayName("회원탈퇴 인증 - 내용")]
  301. public string? WithdrawVerifyEmailFormContent { get; init; }
  302. [MaxLength(4000)]
  303. [DisplayName("이메일 변경 시 - 제목")]
  304. public string? EmailVerifyFormTitle { get; init; }
  305. [MaxLength(4000)]
  306. [DisplayName("이메일 변경 시 - 내용")]
  307. public string? EmailVerifyFormContent { get; init; }
  308. [MaxLength(4000)]
  309. [DisplayName("이메일 변경 완료 - 제목")]
  310. public string? ChangedEmailFormTitle { get; init; }
  311. [MaxLength(4000)]
  312. [DisplayName("이메일 변경 완료 - 내용")]
  313. public string? ChangedEmailFormContent { get; init; }
  314. }
  315. // API 정보
  316. public sealed class ExternalApiConfigDto
  317. {
  318. [MaxLength(500)]
  319. [DisplayName("YouTube - API Name")]
  320. public string? YouTubeApiKeyEnc { get; init; }
  321. [MaxLength(500)]
  322. [DisplayName("YouTube - API Key")]
  323. public string? YouTubeApiName { get; init; }
  324. [MaxLength(500)]
  325. [DisplayName("Google - Client ID")]
  326. public string? GoogleClientId { get; init; }
  327. [MaxLength(500)]
  328. [DisplayName("Google - Client Secret")]
  329. public string? GoogleClientSecretEnc { get; init; }
  330. [MaxLength(500)]
  331. [DisplayName("Google - App ID")]
  332. public string? GoogleAppId { get; init; }
  333. [DisplayName("다날 - 결제 환경")]
  334. public string? DanalPayMode { get; init; }
  335. [MaxLength(100)]
  336. [DisplayName("다날 - Test CPID")]
  337. public string? DanalTestCpid { get; init; }
  338. [MaxLength(500)]
  339. [DisplayName("다날 - Test Client Key")]
  340. public string? DanalTestClientKeyEnc { get; init; }
  341. [MaxLength(500)]
  342. [DisplayName("다날 - Test Secret Key")]
  343. public string? DanalTestSecretKeyEnc { get; init; }
  344. [MaxLength(100)]
  345. [DisplayName("다날 - Live CPID")]
  346. public string? DanalLiveCpid { get; init; }
  347. [MaxLength(500)]
  348. [DisplayName("다날 - Live Client Key")]
  349. public string? DanalLiveClientKeyEnc { get; init; }
  350. [MaxLength(500)]
  351. [DisplayName("다날 - Live Secret Key")]
  352. public string? DanalLiveSecretKeyEnc { get; init; }
  353. }
  354. public sealed class PaymentConfigDto
  355. {
  356. // 수수료 — %가 우선, 원이 그 다음
  357. [Range(0, 100), DisplayName("신용카드 수수료(%)")]
  358. public decimal? DanalCardFeeRate { get; init; }
  359. [Range(0, 100000000), DisplayName("신용카드 수수료(원)")]
  360. public decimal? DanalCardFeeAmount { get; init; }
  361. [Range(0, 100), DisplayName("카카오페이 수수료(%)")]
  362. public decimal? DanalKakaoPayFeeRate { get; init; }
  363. [Range(0, 100000000), DisplayName("카카오페이 수수료(원)")]
  364. public decimal? DanalKakaoPayFeeAmount { get; init; }
  365. [Range(0, 100), DisplayName("네이버페이 수수료(%)")]
  366. public decimal? DanalNaverPayFeeRate { get; init; }
  367. [Range(0, 100000000), DisplayName("네이버페이 수수료(원)")]
  368. public decimal? DanalNaverPayFeeAmount { get; init; }
  369. [Range(0, 100), DisplayName("계좌이체 수수료(%)")]
  370. public decimal? DanalTransferFeeRate { get; init; }
  371. [Range(0, 100000000), DisplayName("계좌이체 수수료(원)")]
  372. public decimal? DanalTransferFeeAmount { get; init; }
  373. [Range(0, 100), DisplayName("휴대폰 수수료(%)")]
  374. public decimal? DanalMobileFeeRate { get; init; }
  375. [Range(0, 100000000), DisplayName("휴대폰 수수료(원)")]
  376. public decimal? DanalMobileFeeAmount { get; init; }
  377. [Range(0, 100), DisplayName("가상계좌 수수료(%)")]
  378. public decimal? DanalVbankFeeRate { get; init; }
  379. [Range(0, 100000000), DisplayName("가상계좌 수수료(원)")]
  380. public decimal? DanalVbankFeeAmount { get; init; }
  381. // 결제 수단 사용 여부
  382. [DisplayName("신용카드 사용 여부")]
  383. public bool IsCardEnabled { get; init; } = false;
  384. [DisplayName("카카오페이 사용 여부")]
  385. public bool IsKakaoPayEnabled { get; init; } = false;
  386. [DisplayName("네이버페이 사용 여부")]
  387. public bool IsNaverPayEnabled { get; init; } = false;
  388. [DisplayName("계좌이체 사용 여부")]
  389. public bool IsTransferEnabled { get; init; } = false;
  390. [DisplayName("휴대폰 사용 여부")]
  391. public bool IsMobileEnabled { get; init; } = false;
  392. [DisplayName("가상계좌 사용 여부")]
  393. public bool IsVirtualAccountEnabled { get; init; } = false;
  394. }
  395. // 출석 설정
  396. public sealed class AttendanceConfigDto
  397. {
  398. [DisplayName("출석 기능 활성화")]
  399. public bool IsEnabled { get; init; } = false;
  400. [Range(0, 100000)]
  401. [DisplayName("기본 경험치")]
  402. public int BaseExp { get; init; } = 0;
  403. [Range(0, 100000)]
  404. [DisplayName("기본 포인트")]
  405. public int BasePoint { get; init; } = 0;
  406. [DisplayName("연속 출석 가중치 사용")]
  407. public bool UseStreakBonus { get; init; } = false;
  408. [Range(0, 10000)]
  409. [DisplayName("1일당 추가 경험치")]
  410. public int StreakBonusPerDay { get; init; } = 0;
  411. [Range(0, 10000)]
  412. [DisplayName("1일당 추가 포인트")]
  413. public int StreakBonusPointPerDay { get; init; } = 0;
  414. [Range(0, 365)]
  415. [DisplayName("가중치 최대 적용 일수")]
  416. public int StreakBonusMaxDays { get; init; } = 0;
  417. [DisplayName("순위 보상 사용")]
  418. public bool UseRankBonus { get; init; } = false;
  419. [MaxLength(2000)]
  420. [DisplayName("순위별 보상 설정 (JSON)")]
  421. public string? RankBonusConfig { get; init; }
  422. }
  423. public static Request From(Get.Response src) => new()
  424. {
  425. ID = src.ID,
  426. Basic = new BasicConfigDto
  427. {
  428. SiteName = src.Basic.SiteName,
  429. SiteURL = src.Basic.SiteURL,
  430. RootID = src.Basic.RootID,
  431. FromEmail = src.Basic.FromEmail,
  432. FromName = src.Basic.FromName,
  433. SmtpServer = src.Basic.SmtpServer,
  434. SmtpPort = src.Basic.SmtpPort,
  435. SmtpEnableSSL = src.Basic.SmtpEnableSSL,
  436. SmtpUsername = src.Basic.SmtpUsername,
  437. SmtpPassword = src.Basic.SmtpPassword,
  438. AdminWhiteIPList = src.Basic.AdminWhiteIPList,
  439. FrontWhiteIPList = src.Basic.FrontWhiteIPList,
  440. BlockAlertTitle = src.Basic.BlockAlertTitle,
  441. BlockAlertContent = src.Basic.BlockAlertContent,
  442. IsMaintenance = src.Basic.IsMaintenance,
  443. MaintenanceContent = src.Basic.MaintenanceContent,
  444. NoteDailySendLimit = src.Basic.NoteDailySendLimit
  445. },
  446. Images = new ImagesConfigDto
  447. {
  448. FaviconPath = src.Images.FaviconPath,
  449. LogoSquarePath = src.Images.LogoSquarePath,
  450. LogoHorizontalPath = src.Images.LogoHorizontalPath,
  451. OgDefaultPath = src.Images.OgDefaultPath,
  452. TwitterImagePath = src.Images.TwitterImagePath,
  453. AppleTouchIconPath = src.Images.AppleTouchIconPath,
  454. AppIcon192Path = src.Images.AppIcon192Path,
  455. AppIcon512Path = src.Images.AppIcon512Path
  456. },
  457. Meta = new MetaConfigDto
  458. {
  459. Keywords = src.Meta.Keywords,
  460. Description = src.Meta.Description,
  461. Author = src.Meta.Author,
  462. Viewport = src.Meta.Viewport,
  463. ApplicationName = src.Meta.ApplicationName,
  464. Generator = src.Meta.Generator,
  465. Robots = src.Meta.Robots,
  466. Adds = src.Meta.Adds
  467. },
  468. Company = new CompanyConfigDto
  469. {
  470. Name = src.Company.Name,
  471. RegNo = src.Company.RegNo,
  472. Address = src.Company.Address,
  473. ZipCode = src.Company.ZipCode,
  474. Owner = src.Company.Owner,
  475. Tel = src.Company.Tel,
  476. Fax = src.Company.Fax,
  477. RetailSaleNo = src.Company.RetailSaleNo,
  478. AddedSaleNo = src.Company.AddedSaleNo,
  479. Hosting = src.Company.Hosting,
  480. AdminName = src.Company.AdminName,
  481. AdminEmail = src.Company.AdminEmail,
  482. SiteUrl = src.Company.SiteUrl,
  483. BankCode = src.Company.BankCode,
  484. BankOwner = src.Company.BankOwner,
  485. BankNumber = src.Company.BankNumber
  486. },
  487. Account = new AccountConfigDto
  488. {
  489. IsRegisterBlock = src.Account.IsRegisterBlock,
  490. IsRegisterEmailAuth = src.Account.IsRegisterEmailAuth,
  491. PasswordMinLength = src.Account.PasswordMinLength,
  492. PasswordUppercaseLength = src.Account.PasswordUppercaseLength,
  493. PasswordNumbersLength = src.Account.PasswordNumbersLength,
  494. PasswordSpecialcharsLength = src.Account.PasswordSpecialcharsLength,
  495. DeniedEmailList = src.Account.DeniedEmailList,
  496. DeniedNameList = src.Account.DeniedNameList,
  497. ChangeEmailDay = src.Account.ChangeEmailDay,
  498. ChangeNameDay = src.Account.ChangeNameDay,
  499. ChangeSummaryDay = src.Account.ChangeSummaryDay,
  500. ChangeIntroDay = src.Account.ChangeIntroDay,
  501. ChangePasswordDay = src.Account.ChangePasswordDay,
  502. IsLoginEmailVerifiedOnly = src.Account.IsLoginEmailVerifiedOnly,
  503. MaxLoginTryCount = src.Account.MaxLoginTryCount,
  504. MaxLoginTryLimitSecond = src.Account.MaxLoginTryLimitSecond
  505. },
  506. EmailTemplate = new EmailTemplateConfigDto
  507. {
  508. RegisterEmailFormTitle = src.EmailTemplate.RegisterEmailFormTitle,
  509. RegisterEmailFormContent = src.EmailTemplate.RegisterEmailFormContent,
  510. RegistrationEmailFormTitle = src.EmailTemplate.RegistrationEmailFormTitle,
  511. RegistrationEmailFormContent = src.EmailTemplate.RegistrationEmailFormContent,
  512. ResetPasswordEmailFormTitle = src.EmailTemplate.ResetPasswordEmailFormTitle,
  513. ResetPasswordEmailFormContent = src.EmailTemplate.ResetPasswordEmailFormContent,
  514. ChangedPasswordEmailFormTitle = src.EmailTemplate.ChangedPasswordEmailFormTitle,
  515. ChangedPasswordEmailFormContent = src.EmailTemplate.ChangedPasswordEmailFormContent,
  516. WithdrawEmailFormTitle = src.EmailTemplate.WithdrawEmailFormTitle,
  517. WithdrawEmailFormContent = src.EmailTemplate.WithdrawEmailFormContent,
  518. WithdrawVerifyEmailFormTitle = src.EmailTemplate.WithdrawVerifyEmailFormTitle,
  519. WithdrawVerifyEmailFormContent = src.EmailTemplate.WithdrawVerifyEmailFormContent,
  520. EmailVerifyFormTitle = src.EmailTemplate.EmailVerifyFormTitle,
  521. EmailVerifyFormContent = src.EmailTemplate.EmailVerifyFormContent,
  522. ChangedEmailFormTitle = src.EmailTemplate.ChangedEmailFormTitle,
  523. ChangedEmailFormContent = src.EmailTemplate.ChangedEmailFormContent
  524. },
  525. External = new ExternalApiConfigDto
  526. {
  527. YouTubeApiKeyEnc = src.External.YouTubeApiKeyEnc,
  528. YouTubeApiName = src.External.YouTubeApiName,
  529. GoogleClientId = src.External.GoogleClientId,
  530. GoogleClientSecretEnc = src.External.GoogleClientSecretEnc,
  531. GoogleAppId = src.External.GoogleAppId,
  532. DanalPayMode = src.External.DanalPayMode,
  533. DanalTestCpid = src.External.DanalTestCpid,
  534. DanalTestClientKeyEnc = src.External.DanalTestClientKeyEnc,
  535. DanalTestSecretKeyEnc = src.External.DanalTestSecretKeyEnc,
  536. DanalLiveCpid = src.External.DanalLiveCpid,
  537. DanalLiveClientKeyEnc = src.External.DanalLiveClientKeyEnc,
  538. DanalLiveSecretKeyEnc = src.External.DanalLiveSecretKeyEnc
  539. },
  540. Payment = new PaymentConfigDto
  541. {
  542. DanalCardFeeRate = src.Payment.DanalCardFeeRate,
  543. DanalCardFeeAmount = src.Payment.DanalCardFeeAmount,
  544. DanalKakaoPayFeeRate = src.Payment.DanalKakaoPayFeeRate,
  545. DanalKakaoPayFeeAmount = src.Payment.DanalKakaoPayFeeAmount,
  546. DanalNaverPayFeeRate = src.Payment.DanalNaverPayFeeRate,
  547. DanalNaverPayFeeAmount = src.Payment.DanalNaverPayFeeAmount,
  548. DanalTransferFeeRate = src.Payment.DanalTransferFeeRate,
  549. DanalTransferFeeAmount = src.Payment.DanalTransferFeeAmount,
  550. DanalMobileFeeRate = src.Payment.DanalMobileFeeRate,
  551. DanalMobileFeeAmount = src.Payment.DanalMobileFeeAmount,
  552. DanalVbankFeeRate = src.Payment.DanalVbankFeeRate,
  553. DanalVbankFeeAmount = src.Payment.DanalVbankFeeAmount,
  554. IsCardEnabled = src.Payment.IsCardEnabled,
  555. IsKakaoPayEnabled = src.Payment.IsKakaoPayEnabled,
  556. IsNaverPayEnabled = src.Payment.IsNaverPayEnabled,
  557. IsTransferEnabled = src.Payment.IsTransferEnabled,
  558. IsMobileEnabled = src.Payment.IsMobileEnabled,
  559. IsVirtualAccountEnabled = src.Payment.IsVirtualAccountEnabled
  560. },
  561. Attendance = new AttendanceConfigDto
  562. {
  563. IsEnabled = src.Attendance.IsEnabled,
  564. BaseExp = src.Attendance.BaseExp,
  565. BasePoint = src.Attendance.BasePoint,
  566. UseStreakBonus = src.Attendance.UseStreakBonus,
  567. StreakBonusPerDay = src.Attendance.StreakBonusPerDay,
  568. StreakBonusPointPerDay = src.Attendance.StreakBonusPointPerDay,
  569. StreakBonusMaxDays = src.Attendance.StreakBonusMaxDays,
  570. UseRankBonus = src.Attendance.UseRankBonus,
  571. RankBonusConfig = src.Attendance.RankBonusConfig
  572. }
  573. };
  574. }