104corp / php-taiwan-bank

台灣的銀行代碼查詢 SDK for PHP
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Feature/refactoring bank #3

Closed minchao closed 7 years ago

minchao commented 7 years ago

依開放資料提供的欄位重構 class, 並將 banks 與 branches 改用 collection 實現

BankCollection:
 - banks: Bank[]
 - updatedAt

Bank:
 - code
 - name
 - address
 - url
 - contact: Contact
 - branches: BranchCollection
 - isActive
 - updatedAt

Branch:
 - bank: Bank
 - code
 - name
 - address
 - contact: Contact
 - isActive
 - updatedAt

Contact:
 - name
 - phone
MilesChou commented 7 years ago

我覺得可以先合,後面再看看怎麼改XD