2022-Front-SQL
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # URI-B-02 活動詳細頁 API ###### tags: `URI-B` `API規格` > [name=Tony Fan, Kenshi Chen] ## 內容 ### 網址 - https://tw.taiwantrade.com/event/%E8%8B%B1%E6%96%87%E5%A5%91%E7%B4%84%E4%B9%8B%E6%92%B0%E6%93%AC-%E5%AF%A9%E9%96%B1%E5%8F%8A%E8%AB%87%E5%88%A4%E8%A6%81%E8%A8%A3-2292025.html ### 程式 - com.hyweb.tt.cms.front.rest.EventResource.java - com/hyweb/tt/cms/cm/layoutdefine/consumer/EventCpConsumer.java ### Input JSON Path #### 規格 - path : `${TT-API網址}/events/detail/{did}/{id}` - method : GET - query : 無 - body : 無 #### 輸入參數說明 - did: 網別代碼 - id : 活動id #### 範例 ```=json https://tt-api.taiwantrade.com/events/detail/801/2292025 ``` * 參考 [URI-B-02 測試案例](https://docs.google.com/spreadsheets/d/1DFZ1-6PyIb4fam4qhMeykC_iHtLns8VSe_BKYNZqX7c/edit#gid=1093005017) ### Output JSON Path #### 規格 ```=json { "code": 0, "errorMsg": null, "data": { "eventId": 1896171, "title": "2022年澳洲國際汽車售後服務零配件展", "description": "2022年澳洲國際汽車售後服務零配件展\n本展為澳洲規模最大之汽車零配件展,於每兩年在澳洲墨爾本展覽中心展出,為澳洲當地最具指標性的汽車售後服務展覽,上屆(2019年)有來自超過30國1萬名專業買主到訪,參展商總計13國311家,展出項目包含汽車引擎、懸吊、煞車、輪胎、動力、內裝、修護、改裝品等。匯集當地汽車售後服務製造商、進出口商和服務商,也是大洋洲和全球汽車零配件供應鏈業者的重要交流盛事,該展也是我國業者布局大洋洲的重要展覽曝光平台。\n澳洲汽車零配件內銷市場規模超過80億澳元,國內現有超過50種汽車品牌和350多種車型,總量超過1,700萬輛,因此對汽車維修與改裝需求旺盛,歡迎有興趣進軍澳洲汽車零配件市場之我商報名參加,名額有限,報名從速!\n報名網址:https://form.taiwantrade.com/event/AAAE2022", "eventBeginDate": 1649260800000, "eventEndDate": 1649260800000, "location": null, "eventTypeId": 1090, "eventType": "國外展覽", "websiteUrl": "https://events.taiwantrade.com/page/EBS/AAAE2022", "organizers": "AAAA", "contactPeople": [ { "name": "彭皓治", "tel": "2725-5200 分機 1567", "email": "alexpen@taitra.org.tw" } ] } } ``` #### 輸出參數說明 活動輸出欄位 | 欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | | -------- | -------- | -------- | -------- | | code | 代碼 | int | 0表示ok | | errorMsg | 錯誤訊息 | String | | | eventId | 活動 ID | int | N | | title | 活動名稱 | String | N,<br>DB限制:varchar 300 | | description | 活動簡介/內容 | String |DB限制:clob | | location | 活動地點 | String | | | eventBeginDate | 活動起始日 | int(日期) | | | eventEndDate | 活動日結束 | int(日期) | | websiteUrl | 活動相關網頁(URL) | String | | | ~~eventTypeId~~ | ~~活動類型代碼~~ |~~int~~ | | | eventType | 活動類型名稱(項目類型)|String | | | organizers | 主辦單位名稱 | String | | |contactPeople | 連絡人清單 | [`連絡人欄位(Array Object)`](#連絡人欄位) || ##### 連絡人欄位 | 欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | | -------- | -------- | -------- |-------- | | name | 聯絡人姓名 | String | | | email | 聯絡人Email | String | | | tel | 聯絡人電話號碼 | String | | * 連絡人欄位對應說明 : 連絡人欄位取自 ARTICLE_EVENT Table中 * main_contractor 聯絡人姓名1 * main_contractor_email 聯絡人Email1 * main_contractor_tel 聯絡人電話號碼1 * secondary_contractor 聯絡人姓名2 * secondary_contractor_email 聯絡人Email2 * secondary_contractor_tel 聯絡人電話號碼2 #### SQL ```=sql SELECT a.aid, m.title, m.description, m.event_begin_time, m.event_end_time, a.main_contractor, a.main_contractor_email, a.secondary_contractor, a.secondary_contractor_email, a.main_contractor_tel, secondary_contractor_tel, a.location, a.url, c.code_name AS event_type, event_type AS event_type_id FROM ARTICLE_EVENT a JOIN MULTI_ARTICLE_EVENT m ON a.aid = m.aid JOIN DOMAIN d ON d.did = 801 --DOAMIN ID LEFT JOIN CODE_META c ON c.cid = a.event_type WHERE a.aid = 1896171 --活動ID AND m.language_id = d.language_id; ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully