E-commerce system, peer-to network loan system, third-party payment can have their own accounting system,
The accounting system and the user system can be completely independent, without the need for user ID and other information, only to provide several interfaces to other systems.
Services can be implemented in a webservice way, it is very convenient to provide services internally, call the interface, it is necessary to call the common API.
can also be made into HTTP, external use is relatively troublesome.
Question: WebService provides an interface that can be called directly in HTTP?
Functional Interface design of accounting system
1. Account Opening
Optional input: User ID, Account fund type (RMB, USD)
Function Description: Create an account.
In theory, you do not need to deposit the user ID, because the accounting system and the user system is relatively independent.
Of course, you can also deposit the user ID, convenient query.
In addition, the user ID can be used as part of the account number when structuring the account number.
2. Trading
Recharge: Add a sum of money to an account.
Withdraw: Reduce a sum of money from one account.
Transfer: Transfer money from one account to another account.
Volume transfer: An enhanced version of the transfer.
Frozen funds: The funds in one account are frozen and the available balances are reduced by the same amount.
Unfreeze Funds: The amount of funds in an account is thawed, and the available balances increase the same amounts.
3. Freezing accounts/thawing accounts
Freezing an account, freezing an account may not be able to carry out the operation such as withdrawal.
Thaw: Change the account from frozen state to normal state.
4. Enquiry
Basic Information Inquiry: Query the total amount of an account, available balance, frozen balance and other information.
Bulk query: Query the amount of multiple accounts and more.
Account opening-Frozen account-Unfreeze account
Freeze funds, unfreeze funds and other journals
Transaction details: Contains the deposit, withdrawal, trading and other account changes in the Fund log.
Add : A shopping consumption, trading behavior will only record one, and the accounts need 2 records, loans and loans.
CSDN2014 Blog Star selection, help Ray vote for it
Http://vote.blog.csdn.net/blogstar2014/details?username=fansunion
Design and implementation of e-commerce system (V): Functional interface design of accounting system