---
# System prepended metadata

title: 商機問題-Green
tags: [bizQA]

---

# 商機問題-Green

###### tags: `bizQA`
> [name=RoyHuang]

--- 
## 稱謂列表

![](https://i.imgur.com/G6VxzrT.png)

- 各環境都是以上的值，可寫死
- API: [URI-O-01](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?both) Prepare appellation data，依 IBM 要寫死，此API 就廢除

![](https://i.imgur.com/4S3jsoZ.png)




---
## URI-054 codeMeta 列表
{TT-API網址}/codemetas/{langId}/{codemetaId}

不同的 codemetaId 是不同資料，以下直接根據 API 給的 url 即可

```=
2. event-country (跟 user-country 有何不同?)
3. user-country-state
4. quantity-unit
```

---
## 會員註冊密碼規則驗證 data 是否需要
- 需要，因為需要第一層結構。請看 code， 
  - =0，代表密碼符合規則
  - <0，error 



--- 
## 聯絡人統一加上稱謂名稱 contactTitleName
- Inquiry Company
[URI-C-01](https://hackmd.io/Y-_iIT7rR4-uqwqN5ZGNXA?view#Prepare-biz-data)

  ![](https://i.imgur.com/vKImc9A.png)


- Favorite Company
[URI-H-06](https://hackmd.io/pazIr8pBSEC-oeA03t_E7A?view#Prepare-biz-data)

  ![](https://i.imgur.com/3DYMM3h.png)



---
## trade-inquiry 補 Custom Header data
已補上
- {TT-API網址}/business/header/{langId}/{trade-inquiry, mso, mst, offer-to-sell}
[URI-O-18](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-18-Prepare-Custom-Header-data)


  ![](https://i.imgur.com/EOynK98.png)




---
## 客製商機 add business 欄位確認
- trade-inquiry、MSO、MST，移除 recommendMatch 和 showBizEmail
[URI-O-11](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-11-add-business)

  - trade-inquiry
  ![](https://i.imgur.com/OuKWGEN.png)
  
  - MSO
  ![](https://i.imgur.com/K3x8OMU.png)
  
  - MST
  ![](https://i.imgur.com/RrGaGsB.png)






---
## 移除範本 id
[URI-O-05](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-05-Prepare-template-data)

![](https://i.imgur.com/9yJMORp.png)




--- 
## 檔案上傳URL修正 + 範例
- fix URL 
  - {TT-API網址}/file/upload
- 範例
  - 用 ajax send file
![](https://i.imgur.com/QS08rDD.png)



--- 
## API 修正
### URI-O-19 Search Suggestions data
- OUTPUT
  - alias2_code 改成 alias2Code
  - alias4_code 改成 alias4Code
[URI-O-19](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?both#URI-O-19-Search-Suggestions-data)




--- 
## 資安需求，api 流程修正
### 檔案上傳
- 需要先取得 dynamic key，在做上傳(時效為5分)，參考 URI062
- INPUT 多 dynamicKey
- OUTPUT 多 attachName 和 attachByte
[URI-O-06](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-06-file-upload)


### 密碼檢查
- 需要先取得 dynamic key，在做上傳(時效為5分)，參考 URI062
- INPUT 多 dynamicKey
[URI-O-08](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-08-Check-password-rule)


### Prepare login data
- URL 修正
  - {TT-API網址}/business/login/{inquiry-product, inquiry-company, rfq, trade-inquiry, mso, mst, offer-to-sell, fav-product, fav-company}
- 需要先取得 dynamic key，在做上傳(時效為5分)，參考 URI062
- INPUT 多 dynamicKey 和 userAccessTicket
[URI-O-10](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-10-Prepare-login-data)


### add business
- 需要先取得 dynamic key，在做上傳(時效為5分)，參考 URI062
[URI-O-11](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-11-add-business)
- INPUT 多 dynamicKey



--- 
## 新增 API
### URI-O-20
[URI-O-20](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-20-Serach-Catalog-or-Suggestions-data)

- trade-inquiry
  - 1
  ![](https://i.imgur.com/R67lM8X.png)
  
  - 2
  ![](https://i.imgur.com/PvL932T.png)

  - 3
  ![](https://i.imgur.com/8PhoI1p.png)


- mso
  - 1
  ![](https://i.imgur.com/P1ppgTj.png)
  
  - 2
  ![](https://i.imgur.com/yBbTw7y.png)

  - 3
  ![](https://i.imgur.com/HfnTV6h.png)


- mst
  - 1
  ![](https://i.imgur.com/45EYoWP.png)
  
  - 2
  ![](https://i.imgur.com/xXriImx.png)

  - 3
  ![](https://i.imgur.com/WLCcADk.png)



- offer-to-sell
  - 1
  ![](https://i.imgur.com/lfsSumD.png)
 
  - 2
  ![](https://i.imgur.com/0NMfppp.png)

  - 3
  ![](https://i.imgur.com/9MqkKy8.png)



### URI-O-21
[URI-O-21](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-21-Get-file-data-by-id)

- inquriy-product
  - 1
  ![](https://i.imgur.com/vG8e0Mq.png)
  
  - 2
  ![](https://i.imgur.com/9PbDuf3.png)

  - 3
  ![](https://i.imgur.com/nr2dGgA.png)
  
  - 4
  ![](https://i.imgur.com/UiQtbIe.png)


- inquriy-company
  - 1
  ![](https://i.imgur.com/e9UvZyE.png)
  
  - 2
  ![](https://i.imgur.com/hqLSx26.png)
  
  - 3
  ![](https://i.imgur.com/tHVcJLQ.png)

  - 4
  ![](https://i.imgur.com/cTwrvfc.png)


- rfq
  - 1
  ![](https://i.imgur.com/JpXJUSi.png)
  
  - 2
  ![](https://i.imgur.com/b6W4dZI.png)
  
  - 3
  ![](https://i.imgur.com/U1bPaW7.png)
  
  - 4
  ![](https://i.imgur.com/QZEo9Od.png)


- favorite-product
  - 1
  ![](https://i.imgur.com/AryMiz7.png)
  
  - 2
  ![](https://i.imgur.com/0Jxm55X.png)
  
  - 3
  ![](https://i.imgur.com/0OyM8XF.png)
  
  - 4
  ![](https://i.imgur.com/MaVEUh9.png)



- favorite-company
  - 1
  ![](https://i.imgur.com/9u6nKgz.png)
  
  - 2
  ![](https://i.imgur.com/lCtLlM6.png)
  
  - 3
  ![](https://i.imgur.com/781t78d.png)
  
  - 4
  ![](https://i.imgur.com/cRHikBE.png)



- trade-inquiry
  - 1
  ![](https://i.imgur.com/HnY4qzx.png)
  
  - 2
  ![](https://i.imgur.com/W75L9B6.png)
  
  - 3
  ![](https://i.imgur.com/1AWXAnO.png)
  
  - 4
  ![](https://i.imgur.com/92TNTGP.png)



- mso
  - 1
  ![](https://i.imgur.com/N6Gbrd9.png)
  
  - 2
  ![](https://i.imgur.com/MZ3VDCj.png)
  
  - 3
  ![](https://i.imgur.com/oL0S2GB.png)
  
  - 4
  ![](https://i.imgur.com/ZnjYdLd.png)


- mst
  - 1
  ![](https://i.imgur.com/GBjqjGE.png)
  
  - 2
  ![](https://i.imgur.com/UMFyRKz.png)
  
  - 3
  ![](https://i.imgur.com/uKWtw6M.png)
  
  - 4
  ![](https://i.imgur.com/XnTEgOY.png)


- offer-to-sell
  - 1
  ![](https://i.imgur.com/VBkdQ6q.png)
  
  - 2
  ![](https://i.imgur.com/Jo6UFY4.png)
  
  - 3
  ![](https://i.imgur.com/t84iEQx.png)
  
  - 4
  ![](https://i.imgur.com/r1IKjua.png)


### URI-O-22
[URI-O-22](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-22-Get-file-data-by-url)

- trade-inquiry
  - 1
  ![](https://i.imgur.com/lYRmg09.png)

  - 2
  ![](https://i.imgur.com/6VnNEdx.png)
  
  - 3
  ![](https://i.imgur.com/CeyQifA.png)



---
## trade inquiry 補以圖找圖流程
[以圖找圖](https://hackmd.io/ski_GjuWRNWmrz2Cfrs7jA?view#%E4%BB%A5%E5%9C%96%E6%90%9C%E5%9C%96%E5%BE%8C%E5%B0%8E%E5%85%A5)


---
## offer to sell 修正API 編號
- URI-D-01 改成 [URI-D-03](https://hackmd.io/nfLULT7pSxyh1vMvmtGQdw?view#URI-D-03-Prepare-no-login-data)
- URI-D-02 改成 [URI-D-04](https://hackmd.io/nfLULT7pSxyh1vMvmtGQdw?view#URI-D-04-Check-agent-right)

![](https://i.imgur.com/SEnbQQe.png)


--- 
## 上傳檔案 output 欄位修正
上傳檔案 output 的 byte 改成 fileByte

- [URI-O-6](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-06-file-upload)
  - 1)
  ![](https://i.imgur.com/ifQYLW7.png)

  - 2)
  ![](https://i.imgur.com/8Zb0Cgb.png)


- [URI-O-21](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-21-Get-file-data-by-id)
  - 1)
  ![](https://i.imgur.com/SH4RAct.png)
  
  - 2)
  ![](https://i.imgur.com/tArpEBW.png)


- [URI-O-22](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-22-Get-file-data-by-url)
  - 1)
  ![](https://i.imgur.com/WJQ1CDi.png)
  
  - 2)
  ![](https://i.imgur.com/S2QaJig.png)


--- 
## fix URI-O-21 input field
INPUT fileIds type 改成 string

![](https://i.imgur.com/CVnvz3o.png)




## fix URI-O-22 input field
INPUT urls rename fileUrls, and type 改成 string

![](https://i.imgur.com/dlYGAW6.png)



--- 
## URI-D-04 fix 規格
[URI-D-04](https://hackmd.io/nfLULT7pSxyh1vMvmtGQdw?view#URI-D-04-Offer-to-Sell-Check-agent-right)
1. GET 改成 POST
2. INPUT 參數，移除 userId，改成 dynamicKey 和 userAccessTicket

![](https://i.imgur.com/XFybIzl.png)



--- 
## URI-O-20 INPUT 
[URI-O-20](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-20-Serach-Catalog-or-Suggestions-data)
suggestion ，require 改成 Y

![](https://i.imgur.com/6ztP4jY.png)



--- 
## URI-O-11 add business(MST)
[URI-O-11](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-11-add-business)

MST input 補上 expiryDate

![](https://i.imgur.com/Ksw9vA4.png)


--- 
## URI-O-20 語系、2碼、4碼

[URI-O-20](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-20-Serach-Catalog-or-Suggestions-data)

- 1. url 多 langId
- 2. OUTPUT: 移除 catalog6NameEn 和 catalog6NameTw, 再新增 catalog6Name、catalog4NameEn、catalog2Name

![](https://i.imgur.com/pakr8Vq.png)

![](https://i.imgur.com/hK2MbjH.png)

![](https://i.imgur.com/15xqslc.png)


--- 
## URI-O-19 POST、did

[URI-O-19](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-19-Search-Suggestions-data)

- 1. 改成 POST
- 2. did (domain id)隱含了語系，一個 domain 只有一個語系

![](https://i.imgur.com/ZLAm2ut.png)


--- 
## URI-O-11 add business(offer-to-sell)
[URI-O-11](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-11-add-business)

Offer to sell : officeTelCountryCode、officeTel、officeTelExt ，require 改成 Y

![](https://i.imgur.com/N8J1JVo.png)
