mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
update
This commit is contained in:
1 parent
133a29ce6e
commit
f25f97b3ac
90 files changed
+2694
-1133
No files matched your search
@@ -0,0 +1,61 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
All other services can be used only after user
|
||||
|
||||
## Description
|
||||
|
||||
**Provider:** `Awda`
|
||||
|
||||
**Service url:** `/welab-sun/api/user/register`
|
||||
|
||||
**Dependency:** `NO`
|
||||
|
||||
**Request method** `POST`
|
||||
|
||||
## Request body
|
||||
|
||||
| Param | Type | Required | Description |
|
||||
| ------- | ------ | -------- | ---------------------- |
|
||||
| body | | Yes | |
|
||||
| -mobile | String | Yes | Customer mobile number |
|
||||
| -name | String | Yes | Customer name |
|
||||
| -nik | String | Yes | Customer NIK |
|
||||
| -email | String | Yes | Customer email |
|
||||
|
||||
Request Sample:
|
||||
|
||||
```json
|
||||
{
|
||||
"body":{
|
||||
"email": "xxx",
|
||||
"mobile": "xxx",
|
||||
"name": "xxx",
|
||||
"nik": "xxx"
|
||||
},
|
||||
"timestamp":"1488363493",
|
||||
"signature":"B3C14758F4AF52AE8AA0D4CD1493B137",
|
||||
"appId":"111",
|
||||
"v":"1.0"
|
||||
}
|
||||
```
|
||||
|
||||
## Response (Json format)
|
||||
|
||||
| Param | Type | Required | Description |
|
||||
| ------- | ------- | -------- | ------------ |
|
||||
| code | Integer | Yes | Status code |
|
||||
| message | String | Yes | Code message |
|
||||
| result | Object | No | Return data |
|
||||
|
||||
|
||||
Sample response for success request:
|
||||
|
||||
```json
|
||||
{
|
||||
"code":0,
|
||||
"message":"Permintaan berhasil",
|
||||
"result":null
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 11
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 12
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 13
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 14
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 15
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 16
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 17
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 18
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 8
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
---
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"label": "Basic Services",
|
||||
"position": 5,
|
||||
"collapsed": false
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
---
|
||||
title: Data dictionary
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
## Marriage
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------- | ---- |
|
||||
| 10 | Belum Menikah | |
|
||||
| 11 | Menikah | |
|
||||
| 12 | Cerai | |
|
||||
|
||||
## Education
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------------ | ---- |
|
||||
| 14 | Sekolah Dasar | |
|
||||
| 16 | SMP | |
|
||||
| 13 | SMA | |
|
||||
| 15 | Diploma/Politehnik | |
|
||||
| 10 | Sarjana | |
|
||||
| 11 | Master | |
|
||||
| 12 | Doctor | |
|
||||
| 17 | Lain-Lain | |
|
||||
|
||||
## House Ownership
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | -------------- | ---- |
|
||||
| 10 | Rumah Sendiri | |
|
||||
| 11 | Rumah Keluarga | |
|
||||
| 12 | Rumah Dinas | |
|
||||
| 13 | Sewa/Kontrak | |
|
||||
| 14 | Kost | |
|
||||
| 15 | Status Kredit | |
|
||||
| 16 | Lain-Lain | |
|
||||
|
||||
## Religion
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ----------------- | ---- |
|
||||
| 10 | Islam | |
|
||||
| 11 | Kristen Protestan | |
|
||||
| 12 | Kristen Katolik | |
|
||||
| 13 | Hindu | |
|
||||
| 14 | Budha | |
|
||||
| 15 | Kong Hu Cu | |
|
||||
|
||||
## Work Type
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------- | ---- |
|
||||
| 10 | Tetap | |
|
||||
| 11 | Kontrak | |
|
||||
| 12 | Outsourcing | |
|
||||
| 13 | Pekerja Lepas | |
|
||||
| 14 | Pemilik Usaha | |
|
||||
|
||||
## Position
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------------------ | ---- |
|
||||
| 10 | Direktur/General Manager | |
|
||||
| 11 | Manajer | |
|
||||
| 12 | Asisten Manajer | |
|
||||
| 13 | Staf | |
|
||||
| 14 | Pemilik | |
|
||||
|
||||
## Industry
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------------------------------------- | ---- |
|
||||
| 10 | Perdagangan Eceran / Grosir | |
|
||||
| 11 | Perbankan / Keuangan / Asuransi / Investasi | |
|
||||
| 12 | Manufaktur | |
|
||||
| 13 | Properti / Konstruksi | |
|
||||
| 14 | Pertambangan / Minyak / Gas | |
|
||||
| 15 | Pendidikan | |
|
||||
| 16 | Telekomunikasi | |
|
||||
| 17 | Pariwisata / Hotel / Perhotelan | |
|
||||
| 18 | Angkutan | |
|
||||
| 19 | PNS (Pemerintah) | |
|
||||
| 20 | Konsultan / Akuntansi / Jasa Profesional | |
|
||||
| 21 | BUMN (Badan Usaha Milik Negara) | |
|
||||
| 22 | Perkebunan / Pertanian | |
|
||||
| 23 | TNI / Polisi (Militer / Polisi) | |
|
||||
| 24 | Hukum | |
|
||||
| 25 | Teknologi | |
|
||||
| 26 | Media / Hiburan | |
|
||||
| 27 | Pemasaran iklan | |
|
||||
| 28 | Makanan & Minuman | |
|
||||
| 29 | Layanan medis | |
|
||||
| 30 | Perikanan | |
|
||||
|
||||
## Office Ownership
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------- | ---- |
|
||||
| 10 | Milik Sendiri | |
|
||||
| 11 | Sewa | |
|
||||
|
||||
## Company Size
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ----------- | ---- |
|
||||
| 10 | 1-5 | |
|
||||
| 11 | 5-10 | |
|
||||
| 12 | 10-25 | |
|
||||
| 13 | 25-50 | |
|
||||
| 14 | >50 | |
|
||||
|
||||
## Occupation
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ------------------------- | ---- |
|
||||
| 11 | Pensiunan/Purnawirawan | |
|
||||
| 12 | Pelayaran/Pelaut | |
|
||||
| 13 | Guru/Pendidikan | |
|
||||
| 14 | Jasa | |
|
||||
| 15 | Dokter/Bidan/Mantri | |
|
||||
| 16 | Ojek Motor | |
|
||||
| 17 | Sopir | |
|
||||
| 18 | Peternak | |
|
||||
| 19 | Pelajar/Mahasiswa | |
|
||||
| 20 | Buruh/PRT | |
|
||||
| 21 | Pengrajin Tangan | |
|
||||
| 23 | Pedagang | |
|
||||
| 24 | Produksi | |
|
||||
| 26 | Sewa/Rent | |
|
||||
| 27 | Transportasi & Komunikasi | |
|
||||
| 28 | Hiburan | |
|
||||
| 29 | Pendidikan Non Formal | |
|
||||
| 30 | Hotel | |
|
||||
| 31 | Perangkat Desa | |
|
||||
| 32 | TNI/Polri | |
|
||||
| 33 | Atlet | |
|
||||
| 34 | Pengobatan Alternatif | |
|
||||
| 2 | ABRI | |
|
||||
| 3 | Pengacara | |
|
||||
| 35 | Jurnalis / Wartawan | |
|
||||
| 37 | Profesi | |
|
||||
| 36 | Wartawan | |
|
||||
| 6 | Lain-Lain | |
|
||||
| 38 | Pekerja Lepas | |
|
||||
|
||||
## Income source
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ---------------------------------- | ---- |
|
||||
| 10 | Gaji/Upah | |
|
||||
| 11 | Laba Usaha | |
|
||||
| 12 | Uang Tabungan | |
|
||||
| 13 | Menjual/Menggadaikan Aset | |
|
||||
| 14 | Dari Keluarga/Teman/Sumber Lainnya | |
|
||||
|
||||
## Relationship with emergency contact
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | --------------- | ---- |
|
||||
| 10 | Pasangan | |
|
||||
| 11 | Orang Tua | |
|
||||
| 12 | Saudara Kandung | |
|
||||
| 13 | Anak | |
|
||||
| 14 | Teman Kantor | |
|
||||
|
||||
## Apply reason
|
||||
|
||||
| Code | Description | Note |
|
||||
| ---- | ----------------------------------------- | ---- |
|
||||
| 10 | Pembelian Handphone / Laptop / Elektronik | |
|
||||
| 11 | Tagihan Rutin | |
|
||||
| 12 | Liburan / Rekreasi | |
|
||||
| 13 | Pembayaran Pajak | |
|
||||
| 14 | Asuransi | |
|
||||
| 15 | Pengobatan Medis | |
|
||||
| 16 | Pendidikan | |
|
||||
| 17 | Konsumsi Rumah Tangga | |
|
||||
| 18 | Modal Usaha | |
|
||||
| 19 | Multiguna | |
|
||||
|
||||
## Document type
|
||||
|
||||
| Code | Description | Note |
|
||||
| ----------------------- | ------------------------------------ | ---- |
|
||||
| bank_statement_3_months | Bank statement for the last 3 months | |
|
||||
| company_id_card | | |
|
||||
| ID_PNS | | |
|
||||
| receiptri | | |
|
||||
| salary_certificate | | |
|
||||
| salary_slip_3_months | Salary slip for the last 3 months | |
|
||||
| self_SKU_SIUP_TDP | | |
|
||||
| SK_PNS | | |
|
||||
| driver_license | | |
|
||||
| KTP | | |
|
||||
@@ -0,0 +1,72 @@
|
||||
---
|
||||
title: Overview
|
||||
sidebar_position: 1
|
||||
slug: /
|
||||
---
|
||||
|
||||
## Integration Guides
|
||||
|
||||
- Require confirmation from AWDA to implement to production after complete UAT for all services.
|
||||
|
||||
- You can use API tools to test some services during your development。
|
||||
|
||||
- You can check the response code or contact us when you have problems during the testing
|
||||
|
||||
- All services using POST method to send request(Including Inquiry)
|
||||
|
||||
- All requests and responses are JSON format. NOTE: Header Content-Type -> application/json UTF-8 encoding
|
||||
|
||||
- All requests require signature
|
||||
|
||||
## Document Change Control
|
||||
|
||||
| Version | Date | Authors | Summary of changes |
|
||||
| ------- | ---------- | ------- | -------------------- |
|
||||
| 1.0.0 | 2019.06.03 | ZHIBO | Thumbnails image url |
|
||||
|
||||
## API Summary
|
||||
|
||||
| **Service name** | **Description** |
|
||||
| -----------------| --------------- |
|
||||
| user registration| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : All other services can be used only after user registration success</p>|
|
||||
| Authorization list inquiry| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : Get the authorization list and check the authorization status</p>|
|
||||
| Get the authorization detail page| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : Customer complete the authorization in the pages</p>
|
||||
| Call back for authorization status| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : To receive the authorization status</p>|
|
||||
| Bank card inquiry| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : To inquiry bank card status</p>|
|
||||
| Get bank list| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Get the bank list for bank card input</p>|
|
||||
| Bank card verification| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Verify and submit bank card</p>|
|
||||
| Submit loan| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Submit loan info, including (personal info, work info and emergency contact)</p> |
|
||||
| Loan agreement inquiry| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Get loan agreement</p>|
|
||||
| Sign agreement| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Sign agreement (Confirm disbursement)</p>|
|
||||
| Get loan information| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Get loan info based on loan number (include repayment schedule if disbursed)</p> |
|
||||
| Get repayment VA| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Get the repayment VA</p>|
|
||||
| Push notification| <p>Provider: Third party </p><p>User : AWDA</p><p>Mandatory: NO</p><p>Description : Push the loan status update to Third party </p>|
|
||||
| Eligible Check| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : YES</p><p>Description : Verify Customer</p>|
|
||||
| Get the token for uploading image| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : To get the token which used for api Upload Image (1)</p>|
|
||||
| Upload Image (1)| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : By sending file stream with token</p>|
|
||||
| Upload Image (2)| <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : By sending base64 or url format</p>|
|
||||
| Get the redirect url<br/>(For H5 pages of Digital Signature, Loan detail and Repayment detail) | <p>Provider : AWDA</p><p>User : Third party </p><p>Mandatory : NO</p><p>Description : Redirect to the specific H5 pages</p>|
|
||||
|
||||
## Environment information
|
||||
|
||||
- Testing environment:`https://sea-staging.wolaidai.com`
|
||||
- Production environment:`https://japi.maucash.id`
|
||||
- Note: All APIs URL will be environment `url` + `service url`
|
||||
|
||||
## List Of Response Code
|
||||
|
||||
| Code|Description|
|
||||
| ----|----|
|
||||
| 0 | Success|
|
||||
| 1000| System is busy|
|
||||
| 1001| Repeat request|
|
||||
| 1002| Unvalid token|
|
||||
| 1003| Timestamp error or expired (only valid within 60s)|
|
||||
| 1004| Signature error|
|
||||
| 1005| appId invalid|
|
||||
| 1006| Parameters cannot be empty|
|
||||
| 1007| Parameters error|
|
||||
| 1008| User already existed|
|
||||
| 1009| User not found|
|
||||
| 1010| Loan not found|
|
||||
| 1012| Authorization info not found|
|
||||
@@ -0,0 +1,81 @@
|
||||
---
|
||||
title: Parameters Instructions
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
### Instructions for API request parameters
|
||||
|
||||
:::note
|
||||
NOTE: The following parameters is included in all services (different values). If no parameters for body then pass blank, like body:””
|
||||
:::
|
||||
|
||||
| Name|Description|Type|Mandatory|Notes|
|
||||
| ----|----|----|----|----|
|
||||
| body|Business parameters|Object|N|Some APIs may require body|
|
||||
| timestamp|Timestamp|Long|Y|Accurate into a second|
|
||||
| appId|Apply from AWDA|String|Y|
|
||||
| v|Version code|String|N|Default 1.0|
|
||||
| signature|Signature|String|Y|All requests need signature|
|
||||
|
||||
example:
|
||||
|
||||
```json
|
||||
{
|
||||
"body": "1111",
|
||||
"timestamp": 1488363493,
|
||||
"signature": "B3C14758F4AF52AE8AA0D4CD1493B137",
|
||||
"appId": "111",
|
||||
"v":"1.0"
|
||||
}
|
||||
```
|
||||
|
||||
### Rules for signature
|
||||
|
||||
Rules for signature:
|
||||
|
||||
- Step 1:Sort the parameters alphabetically by key name. Result will be: appId、body、timestamp、v
|
||||
- Step 2:Combine key and value of all the parameters. Result will be: appId:123456body:{"orderNo":"1234567"}timestamp:1558923813v:1.0
|
||||
- Step 3:Add secret to the last of the result from step 2, which will become the signature. Result will be: appId:123456body:{"orderNo":"1234567"}timestamp:1558923813v:1.0yoursecret
|
||||
- Step 4:MD5 encryption of the signature string. Result will be: `B6F6E3F9ADF4D7558F54BC8B7D9869CC`
|
||||
|
||||
|
||||
### Java Sample Codes for Signature
|
||||
|
||||
```java
|
||||
String[] keys = new String[map.size()];
|
||||
int i = 0;
|
||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||
keys[i++] = entry.getKey();
|
||||
}
|
||||
Arrays.sort(keys);
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (String key : keys) {
|
||||
stringBuilder.append(key);
|
||||
stringBuilder.append(":");
|
||||
stringBuilder.append(map.get(key));
|
||||
}
|
||||
stringBuilder.append(secret);
|
||||
String str=stringBuilder.toString();
|
||||
String encodeStr = DigestUtils.md5Hex(str).toUpperCase();
|
||||
return encodeStr ;
|
||||
```
|
||||
|
||||
### API Response
|
||||
|
||||
| Parameters|DescriptionType|Mandatory|Notes|
|
||||
| ----|----|----|----|----|
|
||||
| code|Status code|Integer|Y|<p>0: Success</p><p>Other codes all represent failure, find more details in Code List</p>|
|
||||
| message|Status description|String|Y|Code description|
|
||||
| result|Return data|Object|N|When code=0, there will be business data returned inside result object|
|
||||
|
||||
### Sample response for success request:
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "Permintaan berhasil",
|
||||
"result": {
|
||||
"state": true
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
title: UML Diagram
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
### Authorization
|
||||
|
||||

|
||||
|
||||
### Submit Bank Card
|
||||
|
||||

|
||||
|
||||
### Submit Loan
|
||||
|
||||

|
||||
|
||||
### Sign Contract
|
||||
|
||||

|
||||
|
||||
### Payment Inquiry
|
||||
|
||||

|
||||
@@ -1,35 +0,0 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Tutorial Intro
|
||||
|
||||
Let's discover **Docusaurus in less than 5 minutes**.
|
||||
|
||||
## Getting Started
|
||||
|
||||
Get started by **creating a new site**.
|
||||
|
||||
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
|
||||
|
||||
## Generate a new site
|
||||
|
||||
Generate a new Docusaurus site using the **classic template**:
|
||||
|
||||
```shell
|
||||
npm init docusaurus@latest my-website classic
|
||||
```
|
||||
|
||||
## Start your site
|
||||
|
||||
Run the development server:
|
||||
|
||||
```shell
|
||||
cd my-website
|
||||
|
||||
npx docusaurus start
|
||||
```
|
||||
|
||||
Your site starts at `http://localhost:3000`.
|
||||
|
||||
Open `docs/intro.md` and edit some lines: the site **reloads automatically** and displays your changes.
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"label": "Tutorial - Basics",
|
||||
"position": 2
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Congratulations!
|
||||
|
||||
You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
|
||||
|
||||
Docusaurus has **much more to offer**!
|
||||
|
||||
Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
|
||||
|
||||
Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
|
||||
|
||||
## What's next?
|
||||
|
||||
- Read the [official documentation](https://docusaurus.io/).
|
||||
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
|
||||
- Add a [search bar](https://docusaurus.io/docs/search)
|
||||
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
|
||||
- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
|
||||
@@ -1,34 +0,0 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Create a Blog Post
|
||||
|
||||
Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
|
||||
|
||||
## Create your first Post
|
||||
|
||||
Create a file at `blog/2021-02-28-greetings.md`:
|
||||
|
||||
```md title="blog/2021-02-28-greetings.md"
|
||||
---
|
||||
slug: greetings
|
||||
title: Greetings!
|
||||
authors:
|
||||
- name: Joel Marcey
|
||||
title: Co-creator of Docusaurus 1
|
||||
url: https://github.com/JoelMarcey
|
||||
image_url: https://github.com/JoelMarcey.png
|
||||
- name: Sébastien Lorber
|
||||
title: Docusaurus maintainer
|
||||
url: https://sebastienlorber.com
|
||||
image_url: https://github.com/slorber.png
|
||||
tags: [greetings]
|
||||
---
|
||||
|
||||
Congratulations, you have made your first post!
|
||||
|
||||
Feel free to play around and edit this post as much you like.
|
||||
```
|
||||
|
||||
A new blog post is now available at `http://localhost:3000/blog/greetings`.
|
||||
@@ -1,55 +0,0 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Create a Document
|
||||
|
||||
Documents are **groups of pages** connected through:
|
||||
|
||||
- a **sidebar**
|
||||
- **previous/next navigation**
|
||||
- **versioning**
|
||||
|
||||
## Create your first Doc
|
||||
|
||||
Create a markdown file at `docs/hello.md`:
|
||||
|
||||
```md title="docs/hello.md"
|
||||
# Hello
|
||||
|
||||
This is my **first Docusaurus document**!
|
||||
```
|
||||
|
||||
A new document is now available at `http://localhost:3000/docs/hello`.
|
||||
|
||||
## Configure the Sidebar
|
||||
|
||||
Docusaurus automatically **creates a sidebar** from the `docs` folder.
|
||||
|
||||
Add metadatas to customize the sidebar label and position:
|
||||
|
||||
```md title="docs/hello.md" {1-4}
|
||||
---
|
||||
sidebar_label: 'Hi!'
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Hello
|
||||
|
||||
This is my **first Docusaurus document**!
|
||||
```
|
||||
|
||||
It is also possible to create your sidebar explicitly in `sidebars.js`:
|
||||
|
||||
```diff title="sidebars.js"
|
||||
module.exports = {
|
||||
tutorialSidebar: [
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Tutorial',
|
||||
- items: [...],
|
||||
+ items: ['hello'],
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
@@ -1,43 +0,0 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Create a Page
|
||||
|
||||
Add **Markdown or React** files to `src/pages` to create a **standalone page**:
|
||||
|
||||
- `src/pages/index.js` -> `localhost:3000/`
|
||||
- `src/pages/foo.md` -> `localhost:3000/foo`
|
||||
- `src/pages/foo/bar.js` -> `localhost:3000/foo/bar`
|
||||
|
||||
## Create your first React Page
|
||||
|
||||
Create a file at `src/pages/my-react-page.js`:
|
||||
|
||||
```jsx title="src/pages/my-react-page.js"
|
||||
import React from 'react';
|
||||
import Layout from '@theme/Layout';
|
||||
|
||||
export default function MyReactPage() {
|
||||
return (
|
||||
<Layout>
|
||||
<h1>My React page</h1>
|
||||
<p>This is a React page</p>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
A new page is now available at `http://localhost:3000/my-react-page`.
|
||||
|
||||
## Create your first Markdown Page
|
||||
|
||||
Create a file at `src/pages/my-markdown-page.md`:
|
||||
|
||||
```mdx title="src/pages/my-markdown-page.md"
|
||||
# My Markdown page
|
||||
|
||||
This is a Markdown page
|
||||
```
|
||||
|
||||
A new page is now available at `http://localhost:3000/my-markdown-page`.
|
||||
@@ -1,31 +0,0 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Deploy your site
|
||||
|
||||
Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
|
||||
|
||||
It builds your site as simple **static HTML, JavaScript and CSS files**.
|
||||
|
||||
## Build your site
|
||||
|
||||
Build your site **for production**:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
The static files are generated in the `build` folder.
|
||||
|
||||
## Deploy your site
|
||||
|
||||
Test your production build locally:
|
||||
|
||||
```bash
|
||||
npm run serve
|
||||
```
|
||||
|
||||
The `build` folder is now served at `http://localhost:3000/`.
|
||||
|
||||
You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
|
||||
@@ -1,144 +0,0 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Markdown Features
|
||||
|
||||
Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**.
|
||||
|
||||
## Front Matter
|
||||
|
||||
Markdown documents have metadata at the top called [Front Matter](https://jekyllrb.com/docs/front-matter/):
|
||||
|
||||
```text title="my-doc.md"
|
||||
// highlight-start
|
||||
---
|
||||
id: my-doc-id
|
||||
title: My document title
|
||||
description: My document description
|
||||
slug: /my-custom-url
|
||||
---
|
||||
// highlight-end
|
||||
|
||||
## Markdown heading
|
||||
|
||||
Markdown text with [links](./hello.md)
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
Regular Markdown links are supported, using url paths or relative file paths.
|
||||
|
||||
```md
|
||||
Let's see how to [Create a page](/create-a-page).
|
||||
```
|
||||
|
||||
```md
|
||||
Let's see how to [Create a page](./create-a-page.md).
|
||||
```
|
||||
|
||||
**Result:** Let's see how to [Create a page](./create-a-page.md).
|
||||
|
||||
## Images
|
||||
|
||||
Regular Markdown images are supported.
|
||||
|
||||
Add an image at `static/img/docusaurus.png` and display it in Markdown:
|
||||
|
||||
```md
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
## Code Blocks
|
||||
|
||||
Markdown code blocks are supported with Syntax highlighting.
|
||||
|
||||
```jsx title="src/components/HelloDocusaurus.js"
|
||||
function HelloDocusaurus() {
|
||||
return (
|
||||
<h1>Hello, Docusaurus!</h1>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
```jsx title="src/components/HelloDocusaurus.js"
|
||||
function HelloDocusaurus() {
|
||||
return <h1>Hello, Docusaurus!</h1>;
|
||||
}
|
||||
```
|
||||
|
||||
## Admonitions
|
||||
|
||||
Docusaurus has a special syntax to create admonitions and callouts:
|
||||
|
||||
:::tip My tip
|
||||
|
||||
Use this awesome feature option
|
||||
|
||||
:::
|
||||
|
||||
:::danger Take care
|
||||
|
||||
This action is dangerous
|
||||
|
||||
:::
|
||||
|
||||
:::tip My tip
|
||||
|
||||
Use this awesome feature option
|
||||
|
||||
:::
|
||||
|
||||
:::danger Take care
|
||||
|
||||
This action is dangerous
|
||||
|
||||
:::
|
||||
|
||||
## MDX and React Components
|
||||
|
||||
[MDX](https://mdxjs.com/) can make your documentation more **interactive** and allows using any **React components inside Markdown**:
|
||||
|
||||
```jsx
|
||||
export const Highlight = ({children, color}) => (
|
||||
<span
|
||||
style={{
|
||||
backgroundColor: color,
|
||||
borderRadius: '20px',
|
||||
color: '#fff',
|
||||
padding: '10px',
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
onClick={() => {
|
||||
alert(`You clicked the color ${color} with label ${children}`)
|
||||
}}>
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
|
||||
This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
|
||||
|
||||
This is <Highlight color="#1877F2">Facebook blue</Highlight> !
|
||||
```
|
||||
|
||||
export const Highlight = ({children, color}) => (
|
||||
<span
|
||||
style={{
|
||||
backgroundColor: color,
|
||||
borderRadius: '20px',
|
||||
color: '#fff',
|
||||
padding: '10px',
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
onClick={() => {
|
||||
alert(`You clicked the color ${color} with label ${children}`);
|
||||
}}>
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
|
||||
This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
|
||||
|
||||
This is <Highlight color="#1877F2">Facebook blue</Highlight> !
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"label": "Tutorial - Extras",
|
||||
"position": 3
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Manage Docs Versions
|
||||
|
||||
Docusaurus can manage multiple versions of your docs.
|
||||
|
||||
## Create a docs version
|
||||
|
||||
Release a version 1.0 of your project:
|
||||
|
||||
```bash
|
||||
npm run docusaurus docs:version 1.0
|
||||
```
|
||||
|
||||
The `docs` folder is copied into `versioned_docs/version-1.0` and `versions.json` is created.
|
||||
|
||||
Your docs now have 2 versions:
|
||||
|
||||
- `1.0` at `http://localhost:3000/docs/` for the version 1.0 docs
|
||||
- `current` at `http://localhost:3000/docs/next/` for the **upcoming, unreleased docs**
|
||||
|
||||
## Add a Version Dropdown
|
||||
|
||||
To navigate seamlessly across versions, add a version dropdown.
|
||||
|
||||
Modify the `docusaurus.config.js` file:
|
||||
|
||||
```js title="docusaurus.config.js"
|
||||
module.exports = {
|
||||
themeConfig: {
|
||||
navbar: {
|
||||
items: [
|
||||
// highlight-start
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
},
|
||||
// highlight-end
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
The docs version dropdown appears in your navbar:
|
||||
|
||||

|
||||
|
||||
## Update an existing version
|
||||
|
||||
It is possible to edit versioned docs in their respective folder:
|
||||
|
||||
- `versioned_docs/version-1.0/hello.md` updates `http://localhost:3000/docs/hello`
|
||||
- `docs/hello.md` updates `http://localhost:3000/docs/next/hello`
|
||||
@@ -1,88 +0,0 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Translate your site
|
||||
|
||||
Let's translate `docs/intro.md` to French.
|
||||
|
||||
## Configure i18n
|
||||
|
||||
Modify `docusaurus.config.js` to add support for the `fr` locale:
|
||||
|
||||
```js title="docusaurus.config.js"
|
||||
module.exports = {
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: ['en', 'fr'],
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
## Translate a doc
|
||||
|
||||
Copy the `docs/intro.md` file to the `i18n/fr` folder:
|
||||
|
||||
```bash
|
||||
mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/
|
||||
|
||||
cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md
|
||||
```
|
||||
|
||||
Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French.
|
||||
|
||||
## Start your localized site
|
||||
|
||||
Start your site on the French locale:
|
||||
|
||||
```bash
|
||||
npm run start -- --locale fr
|
||||
```
|
||||
|
||||
Your localized site is accessible at `http://localhost:3000/fr/` and the `Getting Started` page is translated.
|
||||
|
||||
:::caution
|
||||
|
||||
In development, you can only use one locale at a same time.
|
||||
|
||||
:::
|
||||
|
||||
## Add a Locale Dropdown
|
||||
|
||||
To navigate seamlessly across languages, add a locale dropdown.
|
||||
|
||||
Modify the `docusaurus.config.js` file:
|
||||
|
||||
```js title="docusaurus.config.js"
|
||||
module.exports = {
|
||||
themeConfig: {
|
||||
navbar: {
|
||||
items: [
|
||||
// highlight-start
|
||||
{
|
||||
type: 'localeDropdown',
|
||||
},
|
||||
// highlight-end
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
The locale dropdown now appears in your navbar:
|
||||
|
||||

|
||||
|
||||
## Build your localized site
|
||||
|
||||
Build your site for a specific locale:
|
||||
|
||||
```bash
|
||||
npm run build -- --locale fr
|
||||
```
|
||||
|
||||
Or build your site to include all the locales at once:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
title: 用户创建
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
用户创建,只有在用户创建成功后才能调用其他业务接口,例如:绑卡、授权
|
||||
|
||||
## 接口描述
|
||||
|
||||
**接口提供方:** `Awda`
|
||||
|
||||
**接口地址:** `/welab-sun/api/user/register`
|
||||
|
||||
**前置调用:** `NO`
|
||||
|
||||
**请求方式** `POST`
|
||||
|
||||
## 参数说明
|
||||
|
||||
| 参数名称 | 中文含义 | 类型 | 必选 | 备注 |
|
||||
| -------- | -------- | ------ | ---- | ---- |
|
||||
| body | | | 是 | |
|
||||
| -mobile | 手机号 | String | 是 | |
|
||||
| -name | 用户姓名 | String | 是 | |
|
||||
| -nik | 身份证 | String | 是 | |
|
||||
| -email | 邮箱 | String | 是 | |
|
||||
|
||||
请求参数 - 例:
|
||||
|
||||
```json
|
||||
{
|
||||
"body":{
|
||||
"email": "xxx",
|
||||
"mobile": "xxx",
|
||||
"name": "xxx",
|
||||
"nik": "xxx"
|
||||
},
|
||||
"timestamp":"1488363493",
|
||||
"signature":"B3C14758F4AF52AE8AA0D4CD1493B137",
|
||||
"appId":"111",
|
||||
"v":"1.0"
|
||||
}
|
||||
```
|
||||
|
||||
## 响应数据(返回结果,Json格式)
|
||||
|
||||
| 参数名称 | 中文含义 | 类型 | 必选 | 备注 |
|
||||
| -------- | ---------- | ------- | ---- | ---- |
|
||||
| code | 返回码 | Integer | 是 | |
|
||||
| message | 返回信息 | String | 是 | |
|
||||
| result | 返回结果集 | Object | 否 | |
|
||||
|
||||
|
||||
正确响应的JSON - 例:
|
||||
|
||||
```json
|
||||
{
|
||||
"code":0,
|
||||
"message":"Permintaan berhasil",
|
||||
"result":null
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 签约(确认放款)
|
||||
sidebar_position: 10
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 贷款信息查询
|
||||
sidebar_position: 11
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 用户还款虚拟账号查询
|
||||
sidebar_position: 12
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 推送通知
|
||||
sidebar_position: 13
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 14
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 15
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 16
|
||||
---
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 17
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
sidebar_position: 18
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 查询授权列表
|
||||
sidebar_position: 2
|
||||
---
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 获取授权地址
|
||||
sidebar_position: 3
|
||||
---
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 授权回调通知
|
||||
sidebar_position: 4
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 绑卡信息查询
|
||||
sidebar_position: 5
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 银行列表查询
|
||||
sidebar_position: 6
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 绑定银行卡
|
||||
sidebar_position: 7
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 申请借款
|
||||
sidebar_position: 8
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: 查看合同
|
||||
sidebar_position: 9
|
||||
---
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"label": "基本接口",
|
||||
"position": 5,
|
||||
"collapsed": false
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
---
|
||||
title: 数据字典
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
## 婚姻状况
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------- | ---- |
|
||||
| 10 | Belum Menikah | |
|
||||
| 11 | Menikah | |
|
||||
| 12 | Cerai | |
|
||||
|
||||
## 教育程度
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------------ | ---- |
|
||||
| 14 | Sekolah Dasar | |
|
||||
| 16 | SMP | |
|
||||
| 13 | SMA | |
|
||||
| 15 | Diploma/Politehnik | |
|
||||
| 10 | Sarjana | |
|
||||
| 11 | Master | |
|
||||
| 12 | Doctor | |
|
||||
| 17 | Lain-Lain | |
|
||||
|
||||
## 宅所有权
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | -------------- | ---- |
|
||||
| 10 | Rumah Sendiri | |
|
||||
| 11 | Rumah Keluarga | |
|
||||
| 12 | Rumah Dinas | |
|
||||
| 13 | Sewa/Kontrak | |
|
||||
| 14 | Kost | |
|
||||
| 15 | Status Kredit | |
|
||||
| 16 | Lain-Lain | |
|
||||
|
||||
## 宗教
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ----------------- | ---- |
|
||||
| 10 | Islam | |
|
||||
| 11 | Kristen Protestan | |
|
||||
| 12 | Kristen Katolik | |
|
||||
| 13 | Hindu | |
|
||||
| 14 | Budha | |
|
||||
| 15 | Kong Hu Cu | |
|
||||
|
||||
## 工作类型
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------- | ---- |
|
||||
| 10 | Tetap | |
|
||||
| 11 | Kontrak | |
|
||||
| 12 | Outsourcing | |
|
||||
| 13 | Pekerja Lepas | |
|
||||
| 14 | Pemilik Usaha | |
|
||||
|
||||
## 职位
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------------------ | ---- |
|
||||
| 10 | Direktur/General Manager | |
|
||||
| 11 | Manajer | |
|
||||
| 12 | Asisten Manajer | |
|
||||
| 13 | Staf | |
|
||||
| 14 | Pemilik | |
|
||||
|
||||
## 行业
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------------------------------------- | ---- |
|
||||
| 10 | Perdagangan Eceran / Grosir | |
|
||||
| 11 | Perbankan / Keuangan / Asuransi / Investasi | |
|
||||
| 12 | Manufaktur | |
|
||||
| 13 | Properti / Konstruksi | |
|
||||
| 14 | Pertambangan / Minyak / Gas | |
|
||||
| 15 | Pendidikan | |
|
||||
| 16 | Telekomunikasi | |
|
||||
| 17 | Pariwisata / Hotel / Perhotelan | |
|
||||
| 18 | Angkutan | |
|
||||
| 19 | PNS (Pemerintah) | |
|
||||
| 20 | Konsultan / Akuntansi / Jasa Profesional | |
|
||||
| 21 | BUMN (Badan Usaha Milik Negara) | |
|
||||
| 22 | Perkebunan / Pertanian | |
|
||||
| 23 | TNI / Polisi (Militer / Polisi) | |
|
||||
| 24 | Hukum | |
|
||||
| 25 | Teknologi | |
|
||||
| 26 | Media / Hiburan | |
|
||||
| 27 | Pemasaran iklan | |
|
||||
| 28 | Makanan & Minuman | |
|
||||
| 29 | Layanan medis | |
|
||||
| 30 | Perikanan | |
|
||||
|
||||
## 办公场所所有权
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------- | ---- |
|
||||
| 10 | Milik Sendiri | |
|
||||
| 11 | Sewa | |
|
||||
|
||||
## 公司人数
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ----- | ---- |
|
||||
| 10 | 1-5 | |
|
||||
| 11 | 5-10 | |
|
||||
| 12 | 10-25 | |
|
||||
| 13 | 25-50 | |
|
||||
| 14 | >50 | |
|
||||
|
||||
## 职业
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ------------------------- | ---- |
|
||||
| 11 | Pensiunan/Purnawirawan | |
|
||||
| 12 | Pelayaran/Pelaut | |
|
||||
| 13 | Guru/Pendidikan | |
|
||||
| 14 | Jasa | |
|
||||
| 15 | Dokter/Bidan/Mantri | |
|
||||
| 16 | Ojek Motor | |
|
||||
| 17 | Sopir | |
|
||||
| 18 | Peternak | |
|
||||
| 19 | Pelajar/Mahasiswa | |
|
||||
| 20 | Buruh/PRT | |
|
||||
| 21 | Pengrajin Tangan | |
|
||||
| 23 | Pedagang | |
|
||||
| 24 | Produksi | |
|
||||
| 26 | Sewa/Rent | |
|
||||
| 27 | Transportasi & Komunikasi | |
|
||||
| 28 | Hiburan | |
|
||||
| 29 | Pendidikan Non Formal | |
|
||||
| 30 | Hotel | |
|
||||
| 31 | Perangkat Desa | |
|
||||
| 32 | TNI/Polri | |
|
||||
| 33 | Atlet | |
|
||||
| 34 | Pengobatan Alternatif | |
|
||||
| 2 | ABRI | |
|
||||
| 3 | Pengacara | |
|
||||
| 35 | Jurnalis / Wartawan | |
|
||||
| 37 | Profesi | |
|
||||
| 36 | Wartawan | |
|
||||
| 6 | Lain-Lain | |
|
||||
| 38 | Pekerja Lepas | |
|
||||
|
||||
## 收入来源
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ---------------------------------- | ---- |
|
||||
| 10 | Gaji/Upah | |
|
||||
| 11 | Laba Usaha | |
|
||||
| 12 | Uang Tabungan | |
|
||||
| 13 | Menjual/Menggadaikan Aset | |
|
||||
| 14 | Dari Keluarga/Teman/Sumber Lainnya | |
|
||||
|
||||
## 紧急联系人关系
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | --------------- | ---- |
|
||||
| 10 | Pasangan | |
|
||||
| 11 | Orang Tua | |
|
||||
| 12 | Saudara Kandung | |
|
||||
| 13 | Anak | |
|
||||
| 14 | Teman Kantor | |
|
||||
|
||||
## 借款原因
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ---- | ----------------------------------------- | ---- |
|
||||
| 10 | Pembelian Handphone / Laptop / Elektronik | |
|
||||
| 11 | Tagihan Rutin | |
|
||||
| 12 | Liburan / Rekreasi | |
|
||||
| 13 | Pembayaran Pajak | |
|
||||
| 14 | Asuransi | |
|
||||
| 15 | Pengobatan Medis | |
|
||||
| 16 | Pendidikan | |
|
||||
| 17 | Konsumsi Rumah Tangga | |
|
||||
| 18 | Modal Usaha | |
|
||||
| 19 | Multiguna | |
|
||||
|
||||
## 文档类型
|
||||
|
||||
| 编码 | 描述 | 备注 |
|
||||
| ----------------------- | ------------------------------------ | ---- |
|
||||
| bank_statement_3_months | Bank statement for the last 3 months | |
|
||||
| company_id_card | | |
|
||||
| ID_PNS | | |
|
||||
| receiptri | | |
|
||||
| salary_certificate | | |
|
||||
| salary_slip_3_months | Salary slip for the last 3 months | |
|
||||
| self_SKU_SIUP_TDP | | |
|
||||
| SK_PNS | | |
|
||||
| driver_license | | |
|
||||
| KTP | | |
|
||||
@@ -0,0 +1,80 @@
|
||||
---
|
||||
title: 前言
|
||||
sidebar_position: 1
|
||||
slug: /zh-cn
|
||||
---
|
||||
|
||||
## 必读
|
||||
|
||||
- 在生产环境发布前前,请先通过测试环境调试完所有接口及流程后待我方确认无误方可上生产环境
|
||||
|
||||
- 在开发过程中,可以使用接口调试工具来在线调试某些接口。
|
||||
|
||||
- 在开发出现问题时,可以通过接口调用的返回码查看失败原因或联系我方技术支持人员
|
||||
|
||||
- 所有接口都采用POST方式(包括查询接口)
|
||||
|
||||
- 请求和响应的数据都为JSON格式。注:请设置Header的Content-Type为application/json,采用UTF-8字符编码
|
||||
|
||||
- 所有的接口必须进行接口签名
|
||||
|
||||
## 更新日志
|
||||
|
||||
| 版本 | 日期 | 项目负责人 | 描述 |
|
||||
| ------- | ---------- | ------- | ------- |
|
||||
| 1.0.0 | 2019.06.03 | 吕志博 | 初始版本 |
|
||||
|
||||
## 接口说明
|
||||
|
||||
| **接口名称** | **描述** |
|
||||
| -----------------| --------------- |
|
||||
| user registration| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 用户创建,必须先创建用户成功后才能调用其他接口</p>|
|
||||
| Authorization list inquiry| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : 获取授权列表及用户个人授权状态</p>|
|
||||
| Get the authorization detail page| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : 授权第三方授权页面地址</p>
|
||||
| Call back for authorization status| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : 通知授权结果</p>|
|
||||
| Bank card inquiry| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 查询绑卡信息</p>|
|
||||
| Get bank list| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 获取支持绑卡的银行列表</p>|
|
||||
| Bank card verification| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 用户绑定用于接收平台放款的银行卡</p>|
|
||||
| Submit loan| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 提交进件信息,进件信息包含(用户个人信息、身份信息、工作信息、紧急联系人信息)</p> |
|
||||
| Loan agreement inquiry| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 查看贷款合同</p>|
|
||||
| Sign agreement| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 合同签约(确认放款)</p>|
|
||||
| Get loan information| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 根据贷款编号查询贷款当前信息(如已放款则包含还款计划)</p> |
|
||||
| Get repayment VA| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : 用户还款虚拟账号查询</p>|
|
||||
| Push notification| <p>Provider: Third party </p><p>User : AWDA</p><p>是否必须对接: 否</p><p>接口描述 : 推送贷款状态变更消息</p>|
|
||||
| Eligible Check| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 是</p><p>接口描述 : Verify Customer</p>|
|
||||
| Get the token for uploading image| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : To get the token which used for api Upload Image (1)</p>|
|
||||
| Upload Image (1)| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : By sending file stream with token</p>|
|
||||
| Upload Image (2)| <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : By sending base64 or url format</p>|
|
||||
| Get the redirect url<br/>(For H5 pages of Digital Signature, Loan detail and Repayment detail) | <p>接口提供方: AWDA</p><p>接口调用方 : 合作方 </p><p>是否必须对接 : 否</p><p>接口描述 : Redirect to the specific H5 pages</p>|
|
||||
|
||||
## 环境地址说明
|
||||
|
||||
测试环境域名:`https://sea-staging.wolaidai.com`
|
||||
|
||||
生产环境域名:`https://japi.maucash.id`
|
||||
|
||||
注:所有接口调用真实地址为 `环境域名+接口地址`
|
||||
|
||||
## 全局状态码说明
|
||||
|
||||
| 返回码| 描述|
|
||||
| ----|----|
|
||||
| 0 |请求成功|
|
||||
| 100| 系统繁忙|
|
||||
| 300| 请求超时|
|
||||
| 400| 参数错误|
|
||||
| 404| 网络异常|
|
||||
| 600| 数据不存在|
|
||||
| 999| 其他未知错误|
|
||||
| 1001| 重复请求|
|
||||
| 1002| 无效的token|
|
||||
| 1003| 时间戳有误或已失效(仅处理60S内的请求)|
|
||||
| 1004| 签名校验不通过|
|
||||
| 1005| 商户号错误|
|
||||
| 1006| 参数不能为空|
|
||||
| 1007| 参数有误|
|
||||
| 1008| 用户已存在|
|
||||
| 1009| 用户不存在|
|
||||
| 1010| 订单不存在|
|
||||
| 1011| 系统繁忙|
|
||||
| 1012| 授权信息获取失败|
|
||||
@@ -0,0 +1,100 @@
|
||||
---
|
||||
title: 入参及出参说明
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
### API请求参数说明
|
||||
|
||||
:::note
|
||||
注:所有的API接口都包含如下参数(不同的接口只是参数body值不一样),以下具体接口只针对body进行描述若接口,当没有业务参数的时候, body需要赋值为空字符串,即body: ""
|
||||
:::
|
||||
|
||||
| 参数名称 | 描述 | 类型 | 必填 | 备注 |
|
||||
| --------- | --------------- | ------ | ---- | -------------------- |
|
||||
| body | 业务参数 | Object | 否 | 具体接口决定是否必传 |
|
||||
| timestamp | 时间戳 | Long | 是 | 精确到秒 |
|
||||
| appId | 平台分配的appId | String | 是 |
|
||||
| v | 接口版本号 | String | 否 | 默认1.0 |
|
||||
| signature | 签名 | String | 是 | 见签名生成 |
|
||||
|
||||
例:
|
||||
|
||||
```json
|
||||
{
|
||||
"body": "1111",
|
||||
"timestamp": 1488363493,
|
||||
"signature": "B3C14758F4AF52AE8AA0D4CD1493B137",
|
||||
"appId": "111",
|
||||
"v":"1.0"
|
||||
}
|
||||
```
|
||||
|
||||
### 接口签名规则
|
||||
|
||||
签名生成的通用步骤如下:
|
||||
|
||||
- 第一步:将参与签名的参数按照键值(key)进行字典排序
|
||||
- 第二步:将排序过后的参数,进行key和value字符串拼接
|
||||
- 第三步:将拼接后的字符串末尾加上secret秘钥,合成签名字符串
|
||||
- 第四步:对签名字符串进行MD5加密,生成32位的字符串转换为大写
|
||||
|
||||
### 签名生成过程
|
||||
|
||||
第一步:将参与签名的参数按照键值(key)进行字典排序
|
||||
|
||||
例如:将上述请求参数中的body、timestamp、appId、v 进行字典排序。结果为:appId、body、timestamp (精确到秒)、v
|
||||
|
||||
第二步:将排序过后的参数,进行key和value字符串拼接
|
||||
|
||||
将参数中的key和value按照key的顺序进行字符串拼接。若body为对象的话转成JSON字符串进行签名即可
|
||||
|
||||
例:appId:123456body:{"orderNo":"1234567"}timestamp:1558923813v:1.0
|
||||
|
||||
第三步:将拼接后的字符串尾部加上secret秘钥,合成签名字符串
|
||||
|
||||
将第二步的字符窜首尾拼接上secret。结果为:appId:123456body:{"orderNo":"1234567"}timestamp:1558923813v:1.0yousecret
|
||||
|
||||
第四步:对签名字符串进行MD5加密,生成32位的字符串,并转换大写
|
||||
|
||||
对生成签名字符串进行MD5加密。结果为:B6F6E3F9ADF4D7558F54BC8B7D9869CC
|
||||
|
||||
### Java 签名代码
|
||||
|
||||
```java
|
||||
String[] keys = new String[map.size()];
|
||||
int i = 0;
|
||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||
keys[i++] = entry.getKey();
|
||||
}
|
||||
Arrays.sort(keys);
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (String key : keys) {
|
||||
stringBuilder.append(key);
|
||||
stringBuilder.append(":");
|
||||
stringBuilder.append(map.get(key));
|
||||
}
|
||||
stringBuilder.append(secret);
|
||||
String str=stringBuilder.toString();
|
||||
String encodeStr = DigestUtils.md5Hex(str).toUpperCase();
|
||||
return encodeStr ;
|
||||
```
|
||||
|
||||
### API响应结果说明
|
||||
|
||||
| 参数名称 | 描述 | 类型 | 必填 | 备注 |
|
||||
| -------- | -------- | ------- | ---- | --------------------------------------------------- |
|
||||
| code | 状态码 | Integer | 是 | <p>0:执行成功</p><p>其他编码均为失败,详见码表</p> |
|
||||
| message | 状态描述 | String | 是 | 用于描述code |
|
||||
| result | 详细信息 | Object | 否 | 当code为0时 result为返回的业务数据。 |
|
||||
|
||||
正确响应的JSON - 例:
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "Permintaan berhasil",
|
||||
"result": {
|
||||
"state": true
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
title: 参考对接UML时序图
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
### Wedefend授权
|
||||
|
||||

|
||||
|
||||
### 绑定银行卡
|
||||
|
||||

|
||||
|
||||
### 申请借款
|
||||
|
||||

|
||||
|
||||
### 合同签约
|
||||
|
||||

|
||||
|
||||
### 还款信息
|
||||
|
||||

|
||||
Reference in new issue
Block a user