Design and implementation of e-commerce system (V): Functional interface design of accounting system

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.