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)。
-
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 mathematics 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" } ]'
cd ..
docker build -t finance-api -f finance-api/Dockerfile . or docker build -t finance-api:1.0.0 -f finance-api/Dockerfile .
docker image ls
docker image tag finance-api:latest finance-api:1.0.0
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