docs: 同步 HTTP 调用示例与启动提示

This commit is contained in:
ila
2026-07-16 00:29:24 +08:00
parent 00c1028731
commit d385d6dd3b
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -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/all?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/dictionaries/grid-addresses?parentCode=<区划码>\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/doctors?manaUnitId=<机构码>\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/drugs?ypmc=<药品名>\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/orgs?parentId=<上级机构ID>\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=<区划码>&pageNo=1\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/doctors?manaUnitId=<机构码>&operateUser=<操作人>\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?organizCode=<机构码>&parentId=<上级机构ID>\n", addr)
server := &http.Server{Addr: addr, Handler: mux}
return server.ListenAndServe()