🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/felixanna/web-service-dlw/finance-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/felixanna/web-service-dlw/finance-api

v0.0.0-20221201135145-7066c7e536d3
Source
Go
Version published
Created
Source

finance api

functionalities

a. 深圳住房指导价查询

1. 上传深圳二手房指导价数据 [SQL Server (default) / InMemory];
2. 查询, 过滤小区指导价。

b. 家庭作业

1. 数学加减法算术题生成,支持格式;
    算术题: 
        * a + ? = c
        * ? + b = c
        * a + b = ?

        * a - ? = c
        * ? - b = c
        * a - b = ?
    
   應用題:
        * 比a多/少b的數是c
    
   减法支持仅正数模式;
   
   前端已集成(React + Redux)。
    
    

usage

  • upload file

    example:

    curl --location --request POST 'http://localhost:8484/zdj/upload' \
    --header 'Content-Type:  multipart/form-data' \
    --form 'file=@"/D:/my/github/keep-learning/zdj.txt"'
    
  • search by criteria

    curl --location --request POST 'http://localhost:8484/zdj/search' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "Distrct":  "福田",
        "Street":  "",
        "Community":  "",
    
        "MinPrice":  49000,
        "MaxPrice":  50000,
    
        "Version":  2021,
    
        "SortKey":  "Price",
        "Page": 1,
        "Size":3
    }'
    
  • generate mathematicals problems:

    curl --location --request POST 'localhost:8484/homework/math/multiple' \
    --header 'Content-Type: application/json' \
    --data-raw '[
        {
            "Min": 10,
            "Max": 100,
            "Quantity": 3,
    
            "Category": "+",
            "Kind": "first"
        },
        {
            "Min": 10,
            "Max": 100,
            "Quantity": 1,
    
            "Category": "+",
            "Kind": "second"
        },
        {
            "Min": 10,
            "Max": 100,
            "Quantity": 2,
    
            "Category": "+",
            "Kind": "last"
        }
    ]'
    

Docker Guide

Build

docker build -t finance-api . or docker build -t finance-api:1.0.0 .

Check Image

docker image ls

Tag

docker image tag finance-api:latest finance-api:1.0.0

Run (use consul for service registry and discovery)

docker run -d -e AWS_ACCESS_KEY_ID=xyz -e AWS_SECRET_ACCESS_KEY=abc -e AWS_REGION=ap-southeast-1 -e profile=dev --publish 8484:8484 finance-api:1.0.0

FAQs

Package last updated on 01 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts