8007-患者端API
  1. doctors
8007-患者端API
  • departments
    • 获取所有科室
      GET
    • 根据科室ID获取医生
      GET
  • medical_records
    • 获取所有病历
      GET
    • 创建医疗记录
      POST
    • 根据病历ID获取病历详情
      GET
  • patients
    • 添加或更新就诊人
      POST
    • 更新默认就诊人
      POST
    • 编辑就诊人信息
      PUT
    • 删除就诊人
      DELETE
    • 获取就诊人列表
      GET
  • sessions
    • 获取所有会话
      GET
    • 获取问诊信息
      POST
    • 获取会话消息
      GET
    • 获取会话详情
      POST
  • users
    • 注册用户
      POST
  • appointments
    • 创建挂号
      POST
  • doctors
    • 注册医生
      POST
  • notifications
    • Send a notification message
      POST
  • Schemas
    • Schemas
      • controllers.GetMedicalRecordsResponse
      • controllers.GetSessionsResponse
      • controllers.GetMessagesResponse
      • controllers.GetMemoReq
      • models.AiDoctor
      • controllers.UpdateDefaultPatientRequest
      • controllers.GetMemoResp
      • models.Department
      • models.Function
      • models.AIDoctor
      • models.MedicalRecord
      • models.CardType
      • models.Appointment
      • models.Patient
      • models.CreateMedicalRecordRequest
      • models.Relation
      • models.FormattedMedicalRecord
      • models.Session
      • models.Gender
      • models.Notification
      • models.Doctor
      • models.User
      • models.History
      • models.InspectionExamination
      • models.MedicalHistory
      • models.Message
      • models.PatientBasicInfo
      • models.PregnancyStatus
      • models.SignatureInfo
  1. doctors

注册医生

POST
/api/doctors/register
注册一个新医生或登录已存在的医生

Request

Body Params application/json

Example
{
    "avatar": "string",
    "created_time": "string",
    "department": {
        "description": "string",
        "id": 0,
        "name": "string"
    },
    "department_id": 0,
    "description": "string",
    "id": 0,
    "name": "string",
    "open_id": "string",
    "phone": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/doctors/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "avatar": "string",
    "created_time": "string",
    "department": {
        "description": "string",
        "id": 0,
        "name": "string"
    },
    "department_id": 0,
    "description": "string",
    "id": 0,
    "name": "string",
    "open_id": "string",
    "phone": "string"
}'

Responses

🟢200OK
application/json
成功返回用户信息
Body

Example
{
    "avatar": "string",
    "created_time": "string",
    "department": {
        "description": "string",
        "id": 0,
        "name": "string"
    },
    "department_id": 0,
    "description": "string",
    "id": 0,
    "name": "string",
    "open_id": "string",
    "phone": "string"
}
🟠400Bad Request
🔴500Server Error
Modified at 2025-08-27 03:59:00
Previous
创建挂号
Next
Send a notification message
Built with