docs: 同步 HTTP 调用示例与启动提示
This commit is contained in:
@@ -193,11 +193,11 @@ curl "http://127.0.0.1:8080/api/health-record/crowd?idCard=<身份证>"
|
|||||||
curl "http://127.0.0.1:8080/api/health-check/last?idCard=<身份证>"
|
curl "http://127.0.0.1:8080/api/health-check/last?idCard=<身份证>"
|
||||||
curl "http://127.0.0.1:8080/api/health-check/all?idCard=<身份证>"
|
curl "http://127.0.0.1:8080/api/health-check/all?idCard=<身份证>"
|
||||||
curl "http://127.0.0.1:8080/api/health-check/list?checkYear=2025&idCard=<身份证>"
|
curl "http://127.0.0.1:8080/api/health-check/list?checkYear=2025&idCard=<身份证>"
|
||||||
curl "http://127.0.0.1:8080/api/dictionaries/grid-addresses?parentCode=<区划码>"
|
curl "http://127.0.0.1:8080/api/dictionaries/grid-addresses?parentCode=<区划码>&pageNo=1"
|
||||||
curl "http://127.0.0.1:8080/api/dictionaries/doctors?manaUnitId=<机构码>"
|
curl "http://127.0.0.1:8080/api/dictionaries/doctors?manaUnitId=<机构码>&operateUser=<操作人>"
|
||||||
curl "http://127.0.0.1:8080/api/dictionaries/drugs?pageNo=1&pageSize=10&ypmc=<药品名>" # pageNo 必填
|
curl "http://127.0.0.1:8080/api/dictionaries/drugs?pageNo=1&pageSize=10&ypmc=<药品名>&pym=<拼音码>" # pageNo 必填
|
||||||
curl "http://127.0.0.1:8080/api/dictionaries/orgs?parentId=<上级机构ID>"
|
curl "http://127.0.0.1:8080/api/dictionaries/orgs?organizCode=<机构码>&parentId=<上级机构ID>"
|
||||||
curl "http://127.0.0.1:8080/api/elderly/self-care?idCard=<身份证>"
|
curl "http://127.0.0.1:8080/api/elderly/self-care?idCard=<身份证>&phrId=<档案号>&checkId=<检查主键>"
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ func runServer(cfg config.Config, addr string) error {
|
|||||||
fmt.Printf(" GET http://%s/api/health-check/last?idCard=<身份证>\n", addr)
|
fmt.Printf(" GET http://%s/api/health-check/last?idCard=<身份证>\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/health-check/all?idCard=<身份证>\n", addr)
|
fmt.Printf(" GET http://%s/api/health-check/all?idCard=<身份证>\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/health-check/list?checkYear=<年度>&idCard=<身份证>\n", addr)
|
fmt.Printf(" GET http://%s/api/health-check/list?checkYear=<年度>&idCard=<身份证>\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/elderly/self-care?idCard=<身份证>\n", addr)
|
fmt.Printf(" GET http://%s/api/elderly/self-care?idCard=<身份证>&phrId=<档案号>&checkId=<检查主键>\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/dictionaries/grid-addresses?parentCode=<区划码>\n", addr)
|
fmt.Printf(" GET http://%s/api/dictionaries/grid-addresses?parentCode=<区划码>&pageNo=1\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/dictionaries/doctors?manaUnitId=<机构码>\n", addr)
|
fmt.Printf(" GET http://%s/api/dictionaries/doctors?manaUnitId=<机构码>&operateUser=<操作人>\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/dictionaries/drugs?ypmc=<药品名>\n", addr)
|
fmt.Printf(" GET http://%s/api/dictionaries/drugs?pageNo=1&pageSize=10&ypmc=<药品名>&pym=<拼音码>\n", addr)
|
||||||
fmt.Printf(" GET http://%s/api/dictionaries/orgs?parentId=<上级机构ID>\n", addr)
|
fmt.Printf(" GET http://%s/api/dictionaries/orgs?organizCode=<机构码>&parentId=<上级机构ID>\n", addr)
|
||||||
|
|
||||||
server := &http.Server{Addr: addr, Handler: mux}
|
server := &http.Server{Addr: addr, Handler: mux}
|
||||||
return server.ListenAndServe()
|
return server.ListenAndServe()
|
||||||
|
|||||||
Reference in New Issue
Block a user