{"openapi":"3.0.0","paths":{"/api/health":{"get":{"description":"`[公开接口]` `[免验签 @SkipApiSecurity]`\n\n校验 PostgreSQL 与 Redis 实时连通性，供滚动网关切流与容器探活使用。","operationId":"HealthController_check","parameters":[],"responses":{"200":{"description":"服务健康","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"服务健康","description":"业务提示信息"},"data":{"type":"object","properties":{"status":{"type":"string","example":"ok","description":"整体运行状态"},"database":{"type":"string","example":"up","description":"PostgreSQL 连通状态"},"redis":{"type":"string","enum":["up","memory-fallback"],"example":"up","description":"Redis 连通状态（异常时自动降级内存缓存）"},"timestamp":{"type":"string","example":"2026-11-26T12:00:00.000Z","description":"服务端当前 UTC 时间戳"}},"required":["status","database","redis","timestamp"]}},"required":["code","message","data"]}}}}},"summary":"健康探针检查","tags":["健康探针"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true,"x-petcircle-skip-security":true}},"/api/app/auth/wx-login":{"post":{"description":"`[公开接口]`\n\n通过 wx.login 凭证换取 OpenID 并签发双 Token；冷静期内账号登录将自动撤回注销。","operationId":"AppAuthController_wxLogin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WxLoginDto"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"微信小程序登录","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/dev-login":{"post":{"description":"`[公开接口]`\n\n免密切换预设家庭测试账号（mom/dad/neighbor）；生产或关闭 WEAPP_MOCK_ENABLED 时禁用。","operationId":"AppAuthController_devLogin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevLoginDto"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"本地测试角色快捷登录","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/register":{"post":{"description":"`[公开接口]`\n\n使用 11 位中国大陆手机号与 8~32 位字母数字密码注册新账号并签发双 Token。","operationId":"AppAuthController_registerByPhone","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneRegisterDto"}}}},"responses":{"200":{"description":"注册并登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"注册并登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"H5 手机号密码注册","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/password-login":{"post":{"description":"`[公开接口]`\n\n校验手机号与密码哈希并签发双 Token；冷静期内账号登录将自动撤回注销。","operationId":"AppAuthController_loginByPhone","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneLoginDto"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"H5 手机号密码登录","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/sms-code":{"post":{"description":"`[公开接口]`\n\n向指定手机号发送 6 位数字验证码（60 秒冷却、5 分钟有效，非生产 mock 模式下返回 debugCode）。","operationId":"AppAuthController_sendSmsCode","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsCodeDto"}}}},"responses":{"200":{"description":"发送成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"发送成功","description":"业务提示信息"},"data":{"type":"object","properties":{"cooldownSec":{"type":"number","example":60},"expiresInSec":{"type":"number","example":300},"debugCode":{"type":"string","example":"123456"}},"required":["cooldownSec","expiresInSec"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"发送短信验证码","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/sms-login":{"post":{"description":"`[公开接口]`\n\n校验 6 位短信验证码；已注册手机号直接登录，未注册手机号自动建档并登录。","operationId":"AppAuthController_smsLogin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsLoginDto"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"短信验证码登录","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/reset-password":{"post":{"description":"`[公开接口]`\n\n通过短信验证码重置登录密码，并立即下线所有历史已登录设备。","operationId":"AppAuthController_resetPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordDto"}}}},"responses":{"200":{"description":"重置成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"重置成功","description":"业务提示信息"},"data":{"type":"object","properties":{"reset":{"type":"boolean","example":true}},"required":["reset"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"短信重置登录密码","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/passkey/login-options":{"post":{"description":"`[公开接口]`\n\n生成可发现生物通行密钥 WebAuthn 请求参数与短期 challengeId。","operationId":"AppAuthController_createPasskeyLoginOptions","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object"}},"required":["code","message","data"]}}}}},"summary":"获取 Passkey 登录挑战","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/passkey/login-verify":{"post":{"description":"`[公开接口]`\n\n验证浏览器返回的 WebAuthn 签名断言（未知凭证明确返回 404），通过后签发双 Token。","operationId":"AppAuthController_verifyPasskeyLogin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyLoginVerifyDto"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"校验 Passkey 登录断言","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/refresh-token":{"post":{"description":"`[公开接口]`\n\n校验 Redis 会话白名单与数据库活跃会话，作废旧刷新凭证并签发新双 Token。","operationId":"AppAuthController_refreshToken","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenDto"}}}},"responses":{"200":{"description":"刷新成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"刷新成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"刷新 C 端访问令牌","tags":["C 端认证"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true}},"/api/app/auth/logout":{"post":{"description":"`[可选鉴权]`\n\n吊销当前设备会话并作废对应的 AccessToken 与 RefreshToken。","operationId":"AppAuthController_logout","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutDto"}}}},"responses":{"200":{"description":"退出成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"退出成功","description":"业务提示信息"},"data":{"type":"object","properties":{"loggedOut":{"type":"boolean","example":true}},"required":["loggedOut"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"退出当前登录","tags":["C 端认证"],"security":[{"appBearer":[]},{}],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/me/profile":{"get":{"description":"`[C 端鉴权]`\n\n返回当前登录 C 端用户档案与凭证状态（不含私密 homeLocation 经纬度）。","operationId":"AppMeController_getMyProfile","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取个人资料","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"},"patch":{"description":"`[C 端鉴权]`\n\n修改当前用户昵称或头像，文本经安全审核拦截，有真实微信 OpenID 时同步走微信异步审核。","operationId":"AppMeController_updateMyProfile","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"200":{"description":"更新成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"更新成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"更新个人资料","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/password":{"patch":{"description":"`[C 端鉴权]`\n\n已绑定手机号用户修改或首次设置密码，成功后自动下线除当前设备外的其他所有会话。","operationId":"AppMeController_updatePassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePasswordDto"}}}},"responses":{"200":{"description":"设置成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"设置成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"修改或首次设置登录密码","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/bind-phone":{"post":{"description":"`[C 端鉴权]`\n\n通过微信手机号授权动态令牌绑定当前账号手机号；若手机号已在 H5 注册且未绑微信，返回合并确认信息。","operationId":"AppMeController_bindPhone","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindPhoneDto"}}}},"responses":{"200":{"description":"绑定或待合并确认结果","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"绑定或待合并确认结果","description":"业务提示信息"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["bound","mergeRequired"],"example":"bound"},"profile":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]},"mergeToken":{"type":"string"},"targetAccount":{"type":"object","properties":{"nickname":{"type":"string"},"avatar":{"type":"string"},"phone":{"type":"string"},"petCount":{"type":"number"},"createdAt":{"type":"string"}}}},"required":["status"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"绑定微信手机号","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/bind-phone-sms":{"post":{"description":"`[C 端鉴权]`\n\n校验 6 位短信验证码后绑定手机号；若目标手机号归属未绑微信的 H5 账号，返回合并确认信息。","operationId":"AppMeController_bindPhoneBySms","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindPhoneSmsDto"}}}},"responses":{"200":{"description":"绑定或待合并确认结果","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"绑定或待合并确认结果","description":"业务提示信息"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["bound","mergeRequired"],"example":"bound"},"profile":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]},"mergeToken":{"type":"string"},"targetAccount":{"type":"object","properties":{"nickname":{"type":"string"},"avatar":{"type":"string"},"phone":{"type":"string"},"petCount":{"type":"number"},"createdAt":{"type":"string"}}}},"required":["status"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"短信绑定或换绑手机号","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/confirm-merge":{"post":{"description":"`[C 端鉴权]`\n\n将当前纯微信账号与目标手机号账号的宠物、日程、动态、标点与通行密钥归并至统一主账号并签发新凭证。","operationId":"AppMeController_confirmAccountMerge","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmMergeDto"}}}},"responses":{"200":{"description":"合并并切号成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"合并并切号成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"JWT AccessToken（有效期 7200 秒）"},"refreshToken":{"type":"string","description":"RefreshToken（有效期 30 天）"},"expiresInSec":{"type":"number","example":7200,"description":"AccessToken 有效期时长（秒）"},"user":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["accessToken","refreshToken","expiresInSec","user"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"确认合并双端账号","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/sessions":{"get":{"description":"`[C 端鉴权]`\n\n展示当前账号下所有未过期、未下线的设备会话并标出当前设备。","operationId":"AppMeController_listSessions","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"clientPlatform":{"type":"string","enum":["h5","mpWeixin"]},"loginMethod":{"type":"string","enum":["wechat","password","sms","passkey","dev"]},"deviceLabel":{"type":"string"},"ipAddress":{"type":"string"},"isCurrent":{"type":"boolean"},"lastActiveAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","clientPlatform","loginMethod","deviceLabel","ipAddress","isCurrent","lastActiveAt","createdAt"]}}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取活跃登录设备列表","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/sessions/{sessionId}":{"delete":{"description":"`[C 端鉴权]`\n\n立即吊销目标设备的 AccessToken 与 RefreshToken。","operationId":"AppMeController_revokeSession","parameters":[{"name":"sessionId","required":true,"in":"path","description":"会话 UUID","schema":{"type":"string"}}],"responses":{"200":{"description":"下线成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"下线成功","description":"业务提示信息"},"data":{"type":"object","properties":{"revokedId":{"type":"string"}},"required":["revokedId"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"下线指定设备","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/sessions/revoke-others":{"post":{"description":"`[C 端鉴权]`\n\n保留当前设备会话，立即吊销该账号下其余全部活跃设备。","operationId":"AppMeController_revokeOtherSessions","parameters":[],"responses":{"200":{"description":"下线成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"下线成功","description":"业务提示信息"},"data":{"type":"object","properties":{"revokedCount":{"type":"number","example":2}},"required":["revokedCount"]}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"下线其他全部设备","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/passkeys":{"get":{"description":"`[C 端鉴权]`\n\n返回当前用户已绑定的全部生物通行密钥及权威 rpId / passkeyUserId 元数据。","operationId":"AppMeController_listPasskeys","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object","properties":{"rpId":{"type":"string"},"passkeyUserId":{"type":"string","nullable":true},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"deviceType":{"type":"string","enum":["singleDevice","multiDevice"]},"backedUp":{"type":"boolean"},"aaguid":{"type":"string"},"lastUsedAt":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","displayName","deviceType","backedUp","aaguid","createdAt"]}}},"required":["rpId","credentials"]}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取通行密钥列表","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/passkeys/register-options":{"post":{"description":"`[C 端鉴权]`\n\n为当前已登录账号生成 WebAuthn 注册参数与 excludeCredentials 防重列表。","operationId":"AppMeController_createPasskeyRegisterOptions","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegisterOptionsDto"}}}},"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object"}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取 Passkey 注册挑战","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/passkeys/register-verify":{"post":{"description":"`[C 端鉴权]`\n\n验证浏览器返回的 WebAuthn 注册凭证并持久化到当前账号。","operationId":"AppMeController_verifyPasskeyRegister","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyRegisterVerifyDto"}}}},"responses":{"200":{"description":"绑定成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"绑定成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"deviceType":{"type":"string","enum":["singleDevice","multiDevice"]},"backedUp":{"type":"boolean"},"aaguid":{"type":"string"},"lastUsedAt":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","displayName","deviceType","backedUp","aaguid","createdAt"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"绑定新通行密钥","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/passkeys/{credentialId}":{"patch":{"description":"`[C 端鉴权]`\n\n更新指定通行密钥在安全中心展示的设备别名。","operationId":"AppMeController_renamePasskey","parameters":[{"name":"credentialId","required":true,"in":"path","description":"Base64URL 凭证 ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenamePasskeyDto"}}}},"responses":{"200":{"description":"更新成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"更新成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":"string"},"deviceType":{"type":"string","enum":["singleDevice","multiDevice"]},"backedUp":{"type":"boolean"},"aaguid":{"type":"string"},"lastUsedAt":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","displayName","deviceType","backedUp","aaguid","createdAt"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"重命名通行密钥","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"},"delete":{"description":"`[C 端鉴权]`\n\n从服务端移除指定通行密钥（客户端随后调用 Signal API 同步密码管理器）。","operationId":"AppMeController_deletePasskey","parameters":[{"name":"credentialId","required":true,"in":"path","description":"Base64URL 凭证 ID","schema":{"type":"string"}}],"responses":{"200":{"description":"删除成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"删除成功","description":"业务提示信息"},"data":{"type":"object","properties":{"deletedId":{"type":"string"}},"required":["deletedId"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"删除通行密钥","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/blocks":{"get":{"description":"`[C 端鉴权]`\n\n返回当前用户主动拉黑的社区用户清单。","operationId":"AppMeController_listBlocks","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"拉黑记录主键 ID"},"blockedUserId":{"type":"number","example":8,"description":"被拉黑用户 ID"},"nickname":{"type":"string","example":"路人甲","description":"被拉黑用户昵称"},"avatar":{"type":"string","example":"","description":"被拉黑用户头像"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"拉黑时间"}},"required":["id","blockedUserId","nickname","avatar","createdAt"]}}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取黑名单列表","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/blocks/{targetUserId}":{"post":{"description":"`[C 端鉴权]`\n\n对指定目标用户执行拉黑或取消拉黑操作，并立即双向过滤广场动态与评论。","operationId":"AppMeController_toggleBlock","parameters":[{"name":"targetUserId","required":true,"in":"path","description":"目标用户 ID","schema":{"example":2,"type":"number"}}],"responses":{"200":{"description":"操作成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"操作成功","description":"业务提示信息"},"data":{"type":"object","properties":{"blocked":{"type":"boolean","example":true,"description":"切换后的拉黑状态"}},"required":["blocked"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"切换拉黑状态","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/account/cancel-request":{"post":{"description":"`[C 端鉴权]`\n\n标记账号进入 7 天注销冷静期，期满后由定时任务匿名化并顺位继承共养宠档。","operationId":"AppMeController_requestCancellation","parameters":[],"responses":{"200":{"description":"申请成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"申请成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"发起账号注销","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/me/account/cancel-revoke":{"post":{"description":"`[C 端鉴权]`\n\n在 7 天冷静期内恢复账号至正常活跃状态。","operationId":"AppMeController_revokeCancellation","parameters":[],"responses":{"200":{"description":"撤回成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"撤回成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"C 端用户主键 ID"},"nickname":{"type":"string","example":"团子妈妈","description":"用户昵称"},"avatar":{"type":"string","example":"","description":"用户头像地址"},"phone":{"type":"string","nullable":true,"example":null,"description":"已绑定手机号"},"gender":{"type":"number","example":0,"description":"性别（0=未知，1=男，2=女）"},"cityAdcode":{"type":"string","example":"110105","description":"6 位常驻城市区县编码"},"sitterStatus":{"type":"string","enum":["none","preApplied","certified","suspended"],"example":"none","description":"宠托师认证演进状态"},"cancelRequestedAt":{"type":"string","nullable":true,"example":null,"description":"注销冷静期发起时间"},"status":{"type":"string","enum":["active","canceling","deleted","muted","banned"],"example":"active","description":"账号状态"},"hasPassword":{"type":"boolean","example":true,"description":"是否已设置登录密码"},"hasWechat":{"type":"boolean","example":false,"description":"是否已绑定微信账号"},"passkeyCount":{"type":"number","example":0,"description":"已注册的通行密钥数量"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"注册时间"}},"required":["id","nickname","avatar","gender","cityAdcode","sitterStatus","status","hasPassword","hasWechat","passkeyCount","createdAt"]}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"撤回账号注销","tags":["个人中心与隐私"],"x-petcircle-auth-realm":"app"}},"/api/app/common/upload-policy":{"post":{"description":"`[C 端鉴权]`\n\n根据服务端 STORAGE_DRIVER 返回阿里云 OSS 直传签名或开发态本地表单上传路径（自动对齐当前请求域）。","operationId":"CommonController_issueUploadPolicy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadPolicyDto"}}}},"responses":{"200":{"description":"签发成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"签发成功","description":"业务提示信息"},"data":{"type":"object","properties":{"driver":{"type":"string","enum":["local","ali-oss"],"example":"local"},"uploadUrl":{"type":"string","example":"http://127.0.0.1:9200/api/app/common/local-upload"},"publicUrl":{"type":"string","example":"http://127.0.0.1:9200/uploads/dog-avatars/2026-11-26/demo.jpg"},"objectKey":{"type":"string","example":"dog-avatars/2026-11-26/demo.jpg"},"fields":{"type":"object","additionalProperties":{"type":"string"},"example":{"key":"dog-avatars/2026-11-26/demo.jpg"}}},"required":["driver","uploadUrl","publicUrl","objectKey","fields"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"签发文件上传凭证","tags":["文件存储与公共服务"],"x-petcircle-auth-realm":"app"}},"/api/app/common/local-upload":{"post":{"description":"`[C 端鉴权]`\n\n接收 multipart/form-data 图片文件（JPG/PNG/WEBP <= 5MB），返回与当前访问域对齐的可访问 URL。","operationId":"CommonController_uploadLocalFile","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"图片文件（<= 5MB）"},"key":{"type":"string","description":"可选目标对象键（来自 upload-policy）"}},"required":["file"]}}}},"responses":{"200":{"description":"上传成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"上传成功","description":"业务提示信息"},"data":{"type":"object","properties":{"publicUrl":{"type":"string","example":"http://127.0.0.1:9200/uploads/dog-avatars/2026-11-26/demo.jpg"}},"required":["publicUrl"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"开发态本地文件上传","tags":["文件存储与公共服务"],"x-petcircle-auth-realm":"app"}},"/api/app/wechat/callback":{"get":{"description":"`[公开接口]` `[免验签 @SkipApiSecurity]`\n\n核验 signature/timestamp/nonce 后原样返回 echostr 纯文本串。","operationId":"WechatCallbackController_verifyServerEndpoint","parameters":[{"name":"echostr","required":true,"in":"query","description":"随机回显字符串","schema":{"type":"string"}},{"name":"nonce","required":true,"in":"query","description":"随机数","schema":{"type":"string"}},{"name":"timestamp","required":true,"in":"query","description":"时间戳","schema":{"type":"string"}},{"name":"signature","required":true,"in":"query","description":"微信加密签名","schema":{"type":"string"}}],"responses":{"200":{"description":"验签成功，原样返回 echostr","content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"微信服务器签名核验","tags":["微信回调接入"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true,"x-petcircle-skip-security":true},"post":{"description":"`[公开接口]` `[免验签 @SkipApiSecurity]`\n\n验签后处理 wxa_media_check 异步推送结果并返回纯文本 success。","operationId":"WechatCallbackController_receivePushEvent","parameters":[{"name":"nonce","required":true,"in":"query","description":"随机数","schema":{"type":"string"}},{"name":"timestamp","required":true,"in":"query","description":"时间戳","schema":{"type":"string"}},{"name":"signature","required":true,"in":"query","description":"微信加密签名","schema":{"type":"string"}}],"responses":{"200":{"description":"处理成功，返回 success","content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"summary":"接收微信媒体审核异步回调","tags":["微信回调接入"],"security":[],"x-petcircle-auth-realm":"none","x-petcircle-public":true,"x-petcircle-skip-security":true}},"/api/app/pets":{"get":{"description":"`[C 端鉴权]`\n\n返回当前用户主理及参与共养的所有活跃宠物档案。","operationId":"PetController_listMyPets","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"宠物档案 ID"},"primaryOwnerId":{"type":"number","example":1,"description":"主养人用户 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"宠物物种"},"name":{"type":"string","example":"团子","description":"宠物昵称"},"avatar":{"type":"string","example":"","description":"头像 URL"},"breed":{"type":"string","example":"威尔士柯基犬","description":"品种名称"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"isSterilized":{"type":"boolean","example":true,"description":"是否已绝育"},"birthDate":{"type":"string","nullable":true,"example":"2024-03-15","description":"出生日期"},"adoptDate":{"type":"string","nullable":true,"example":"2024-05-20","description":"到家日期"},"sizeType":{"type":"string","enum":["small","medium","large","giant"],"example":"medium","description":"体型分级"},"weightKg":{"type":"number","nullable":true,"example":11.5,"description":"体重（kg）"},"personalityTags":{"type":"array","items":{"type":"string"},"example":["亲人","贪吃"],"description":"性格标签"},"allergyMedicalNote":{"type":"string","example":"","description":"过敏/病史备注"},"licenseStatus":{"type":"string","enum":["none","pending","verified","rejected"],"example":"none","description":"证件认证状态"},"licenseNo":{"type":"string","nullable":true,"example":null,"description":"证件编号"},"licenseImages":{"type":"array","items":{"type":"string"},"example":[],"description":"证件照列表"},"licenseAuditRemark":{"type":"string","example":"","description":"审核意见"},"status":{"type":"string","enum":["active","archived"],"example":"active","description":"档案状态"},"myRole":{"type":"string","enum":["owner","coOwner"],"example":"owner","description":"当前用户的共养角色"},"myRelationLabel":{"type":"string","example":"主理人","description":"我的家庭称谓"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"创建时间"}}}}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取我的宠物档案列表","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"},"post":{"description":"`[C 端鉴权]`\n\n创建犬/猫/异宠档案，自动绑定当前用户为主理人。","operationId":"PetController_createPet","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertPetDto"}}}},"responses":{"200":{"description":"创建成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"创建成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"宠物档案 ID"},"primaryOwnerId":{"type":"number","example":1,"description":"主养人用户 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"宠物物种"},"name":{"type":"string","example":"团子","description":"宠物昵称"},"avatar":{"type":"string","example":"","description":"头像 URL"},"breed":{"type":"string","example":"威尔士柯基犬","description":"品种名称"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"isSterilized":{"type":"boolean","example":true,"description":"是否已绝育"},"birthDate":{"type":"string","nullable":true,"example":"2024-03-15","description":"出生日期"},"adoptDate":{"type":"string","nullable":true,"example":"2024-05-20","description":"到家日期"},"sizeType":{"type":"string","enum":["small","medium","large","giant"],"example":"medium","description":"体型分级"},"weightKg":{"type":"number","nullable":true,"example":11.5,"description":"体重（kg）"},"personalityTags":{"type":"array","items":{"type":"string"},"example":["亲人","贪吃"],"description":"性格标签"},"allergyMedicalNote":{"type":"string","example":"","description":"过敏/病史备注"},"licenseStatus":{"type":"string","enum":["none","pending","verified","rejected"],"example":"none","description":"证件认证状态"},"licenseNo":{"type":"string","nullable":true,"example":null,"description":"证件编号"},"licenseImages":{"type":"array","items":{"type":"string"},"example":[],"description":"证件照列表"},"licenseAuditRemark":{"type":"string","example":"","description":"审核意见"},"status":{"type":"string","enum":["active","archived"],"example":"active","description":"档案状态"},"myRole":{"type":"string","enum":["owner","coOwner"],"example":"owner","description":"当前用户的共养角色"},"myRelationLabel":{"type":"string","example":"主理人","description":"我的家庭称谓"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"创建时间"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"创建宠物档案","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"}},"/api/app/pets/{id}":{"put":{"description":"`[C 端鉴权]`\n\n共养家庭成员均可维护宠物基本信息、体重与性格标签。","operationId":"PetController_updatePet","parameters":[{"name":"id","required":true,"in":"path","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertPetDto"}}}},"responses":{"200":{"description":"更新成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"更新成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"宠物档案 ID"},"primaryOwnerId":{"type":"number","example":1,"description":"主养人用户 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"宠物物种"},"name":{"type":"string","example":"团子","description":"宠物昵称"},"avatar":{"type":"string","example":"","description":"头像 URL"},"breed":{"type":"string","example":"威尔士柯基犬","description":"品种名称"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"isSterilized":{"type":"boolean","example":true,"description":"是否已绝育"},"birthDate":{"type":"string","nullable":true,"example":"2024-03-15","description":"出生日期"},"adoptDate":{"type":"string","nullable":true,"example":"2024-05-20","description":"到家日期"},"sizeType":{"type":"string","enum":["small","medium","large","giant"],"example":"medium","description":"体型分级"},"weightKg":{"type":"number","nullable":true,"example":11.5,"description":"体重（kg）"},"personalityTags":{"type":"array","items":{"type":"string"},"example":["亲人","贪吃"],"description":"性格标签"},"allergyMedicalNote":{"type":"string","example":"","description":"过敏/病史备注"},"licenseStatus":{"type":"string","enum":["none","pending","verified","rejected"],"example":"none","description":"证件认证状态"},"licenseNo":{"type":"string","nullable":true,"example":null,"description":"证件编号"},"licenseImages":{"type":"array","items":{"type":"string"},"example":[],"description":"证件照列表"},"licenseAuditRemark":{"type":"string","example":"","description":"审核意见"},"status":{"type":"string","enum":["active","archived"],"example":"active","description":"档案状态"},"myRole":{"type":"string","enum":["owner","coOwner"],"example":"owner","description":"当前用户的共养角色"},"myRelationLabel":{"type":"string","example":"主理人","description":"我的家庭称谓"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"创建时间"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"更新宠物档案","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"},"delete":{"description":"`[C 端鉴权]`\n\n仅主理人（owner）可物理删除宠物档案并级联清理护理日程、打卡与健康记录，保留历史寻宠记录并解除关联。","operationId":"PetController_deletePet","parameters":[{"name":"id","required":true,"in":"path","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"删除成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"删除成功","description":"业务提示信息"},"data":{"type":"object","properties":{"deletedId":{"type":"number","example":1,"description":"已删除宠物档案 ID"}},"required":["deletedId"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"删除宠物档案","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"}},"/api/app/pets/{id}/license":{"post":{"description":"`[C 端鉴权]`\n\n上传犬证或疫苗免疫本照片提交后台人工审核。","operationId":"PetController_submitLicense","parameters":[{"name":"id","required":true,"in":"path","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitPetLicenseDto"}}}},"responses":{"200":{"description":"提交成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"提交成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"宠物档案 ID"},"primaryOwnerId":{"type":"number","example":1,"description":"主养人用户 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"宠物物种"},"name":{"type":"string","example":"团子","description":"宠物昵称"},"avatar":{"type":"string","example":"","description":"头像 URL"},"breed":{"type":"string","example":"威尔士柯基犬","description":"品种名称"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"isSterilized":{"type":"boolean","example":true,"description":"是否已绝育"},"birthDate":{"type":"string","nullable":true,"example":"2024-03-15","description":"出生日期"},"adoptDate":{"type":"string","nullable":true,"example":"2024-05-20","description":"到家日期"},"sizeType":{"type":"string","enum":["small","medium","large","giant"],"example":"medium","description":"体型分级"},"weightKg":{"type":"number","nullable":true,"example":11.5,"description":"体重（kg）"},"personalityTags":{"type":"array","items":{"type":"string"},"example":["亲人","贪吃"],"description":"性格标签"},"allergyMedicalNote":{"type":"string","example":"","description":"过敏/病史备注"},"licenseStatus":{"type":"string","enum":["none","pending","verified","rejected"],"example":"none","description":"证件认证状态"},"licenseNo":{"type":"string","nullable":true,"example":null,"description":"证件编号"},"licenseImages":{"type":"array","items":{"type":"string"},"example":[],"description":"证件照列表"},"licenseAuditRemark":{"type":"string","example":"","description":"审核意见"},"status":{"type":"string","enum":["active","archived"],"example":"active","description":"档案状态"},"myRole":{"type":"string","enum":["owner","coOwner"],"example":"owner","description":"当前用户的共养角色"},"myRelationLabel":{"type":"string","example":"主理人","description":"我的家庭称谓"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00","description":"创建时间"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"提交证件认证","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"}},"/api/app/pets/{id}/members":{"get":{"description":"`[C 端鉴权]`\n\n列出该宠物的主理人及全部共养家人及称谓标签。","operationId":"PetController_listMembers","parameters":[{"name":"id","required":true,"in":"path","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"petId":{"type":"number","example":1},"userId":{"type":"number","example":2},"nickname":{"type":"string","example":"团子爸爸"},"avatar":{"type":"string","example":""},"role":{"type":"string","enum":["owner","coOwner"],"example":"coOwner"},"relationLabel":{"type":"string","example":"爸爸"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取共养家人列表","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"}},"/api/app/pets/{id}/invites":{"post":{"description":"`[C 端鉴权]`\n\n生成 24 小时有效的家庭共养邀请码，供其他家人扫码或口令加入。","operationId":"PetController_createInvite","parameters":[{"name":"id","required":true,"in":"path","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"生成成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"生成成功","description":"业务提示信息"},"data":{"type":"object","properties":{"inviteCode":{"type":"string","example":"PC8A29F1","description":"一次性共养邀请口令"},"petId":{"type":"number","example":1},"petName":{"type":"string","example":"团子"},"expiresAt":{"type":"string","example":"2026-11-27T10:00:00+08:00","description":"过期时间"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"生成共养邀请口令","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"}},"/api/app/pets/invites/{code}/accept":{"post":{"description":"`[C 端鉴权]`\n\n输入 24 小时邀请口令及称谓标签加入该宠物的家庭共养圈。","operationId":"PetController_acceptInvite","parameters":[{"name":"code","required":true,"in":"path","description":"共养邀请口令","schema":{"example":"PC8A29F1","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptPetInviteDto"}}}},"responses":{"200":{"description":"加入成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"加入成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":2},"petId":{"type":"number","example":1},"userId":{"type":"number","example":2},"nickname":{"type":"string","example":"团子爸爸"},"avatar":{"type":"string","example":""},"role":{"type":"string","enum":["owner","coOwner"],"example":"coOwner"},"relationLabel":{"type":"string","example":"爸爸"},"createdAt":{"type":"string","example":"2026-11-26T10:05:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"接受家庭共养邀请","tags":["宠物档案与家庭共养"],"x-petcircle-auth-realm":"app"}},"/api/app/lost-alerts/nearby":{"get":{"description":"`[可选鉴权]`\n\n基于 PostGIS 地理范围检索周边 500m~10km 内正在搜寻中的走失广播。","operationId":"LostAlertController_listNearby","parameters":[{"name":"lng","required":false,"in":"query","description":"查询基准 GCJ-02 经度（默认 116.473）","schema":{"example":116.473,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"查询基准 GCJ-02 纬度（默认 39.993）","schema":{"example":39.993,"type":"number"}},{"name":"radiusM","required":false,"in":"query","description":"搜索半径（单位：米，范围 500~10000，默认 5000）","schema":{"example":5000,"type":"number"}},{"name":"species","required":false,"in":"query","description":"按物种筛选","schema":{"enum":["dog","cat","other"],"type":"string"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"寻宠广播 ID"},"publisherId":{"type":"number","example":1,"description":"发布者用户 ID"},"petId":{"type":"number","nullable":true,"example":1,"description":"关联宠物 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"物种"},"petName":{"type":"string","example":"团子","description":"宠物名称"},"breed":{"type":"string","example":"柯基犬","description":"品种"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"colorFeature":{"type":"string","example":"黄白双色带橙色胸背","description":"外观特征"},"images":{"type":"array","items":{"type":"string"},"description":"近照列表"},"lastSeenAt":{"type":"string","example":"2026-11-26T18:30:00+08:00","description":"最后目击时间"},"lastSeenLng":{"type":"number","example":116.473,"description":"走失点 GCJ-02 经度"},"lastSeenLat":{"type":"number","example":39.993,"description":"走失点 GCJ-02 纬度"},"lastSeenAddress":{"type":"string","example":"望京公园南门","description":"走失地址"},"contactName":{"type":"string","example":"林女士","description":"联系人"},"contactPhone":{"type":"string","example":"13800138000","description":"联系电话"},"rewardNote":{"type":"string","example":"重谢 1000 元","description":"酬谢说明"},"clueCount":{"type":"number","example":2,"description":"累计目击线索数"},"expiresAt":{"type":"string","example":"2026-11-29T18:30:00+08:00","description":"过期时间"},"status":{"type":"string","enum":["searching","found","closed","removed"],"example":"searching","description":"广播状态"},"distanceM":{"type":"number","example":320,"description":"距检索坐标距离（米）"},"createdAt":{"type":"string","example":"2026-11-26T18:35:00+08:00","description":"创建时间"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"查询周边紧急寻宠广播","tags":["紧急寻宠广播"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/lost-alerts":{"post":{"description":"`[C 端鉴权]`\n\n立即发布 72 小时有效的周边 5km 紧急寻宠广播并同步图文安全审核。","operationId":"LostAlertController_createAlert","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLostAlertDto"}}}},"responses":{"200":{"description":"发布成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"发布成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"寻宠广播 ID"},"publisherId":{"type":"number","example":1,"description":"发布者用户 ID"},"petId":{"type":"number","nullable":true,"example":1,"description":"关联宠物 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"物种"},"petName":{"type":"string","example":"团子","description":"宠物名称"},"breed":{"type":"string","example":"柯基犬","description":"品种"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"colorFeature":{"type":"string","example":"黄白双色带橙色胸背","description":"外观特征"},"images":{"type":"array","items":{"type":"string"},"description":"近照列表"},"lastSeenAt":{"type":"string","example":"2026-11-26T18:30:00+08:00","description":"最后目击时间"},"lastSeenLng":{"type":"number","example":116.473,"description":"走失点 GCJ-02 经度"},"lastSeenLat":{"type":"number","example":39.993,"description":"走失点 GCJ-02 纬度"},"lastSeenAddress":{"type":"string","example":"望京公园南门","description":"走失地址"},"contactName":{"type":"string","example":"林女士","description":"联系人"},"contactPhone":{"type":"string","example":"13800138000","description":"联系电话"},"rewardNote":{"type":"string","example":"重谢 1000 元","description":"酬谢说明"},"clueCount":{"type":"number","example":2,"description":"累计目击线索数"},"expiresAt":{"type":"string","example":"2026-11-29T18:30:00+08:00","description":"过期时间"},"status":{"type":"string","enum":["searching","found","closed","removed"],"example":"searching","description":"广播状态"},"distanceM":{"type":"number","example":320,"description":"距检索坐标距离（米）"},"createdAt":{"type":"string","example":"2026-11-26T18:35:00+08:00","description":"创建时间"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"发布紧急寻宠广播","tags":["紧急寻宠广播"],"x-petcircle-auth-realm":"app"}},"/api/app/lost-alerts/{id}/clues":{"get":{"description":"`[可选鉴权]`\n\n按时间倒序返回热心宠友上报的现场目击坐标与照片线索。","operationId":"LostAlertController_listClues","parameters":[{"name":"id","required":true,"in":"path","description":"寻宠广播 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"alertId":{"type":"number","example":1},"reporterId":{"type":"number","example":3},"reporterName":{"type":"string","example":"邻里小陈"},"reporterAvatar":{"type":"string","example":""},"sightingAt":{"type":"string","example":"2026-11-26T19:15:00+08:00"},"sightingLng":{"type":"number","example":116.4765},"sightingLat":{"type":"number","example":39.9948},"sightingAddress":{"type":"string","example":"望京西路绿化带"},"images":{"type":"array","items":{"type":"string"}},"description":{"type":"string","example":"往小区南门方向跑去"},"createdAt":{"type":"string","example":"2026-11-26T19:18:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"获取寻宠目击线索列表","tags":["紧急寻宠广播"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true},"post":{"description":"`[C 端鉴权]`\n\n为搜索中的寻宠广播上报目击位置与描述，累计线索数并尝试推送微信订阅通知。","operationId":"LostAlertController_submitClue","parameters":[{"name":"id","required":true,"in":"path","description":"寻宠广播 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitLostClueDto"}}}},"responses":{"200":{"description":"线索提交成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"线索提交成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"提交目击线索","tags":["紧急寻宠广播"],"x-petcircle-auth-realm":"app"}},"/api/app/lost-alerts/{id}/found":{"patch":{"description":"`[C 端鉴权]`\n\n仅广播发布者本人可将寻宠状态变更为 found 平安归家。","operationId":"LostAlertController_markFound","parameters":[{"name":"id","required":true,"in":"path","description":"寻宠广播 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"销案成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"销案成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1,"description":"寻宠广播 ID"},"publisherId":{"type":"number","example":1,"description":"发布者用户 ID"},"petId":{"type":"number","nullable":true,"example":1,"description":"关联宠物 ID"},"species":{"type":"string","enum":["dog","cat","other"],"example":"dog","description":"物种"},"petName":{"type":"string","example":"团子","description":"宠物名称"},"breed":{"type":"string","example":"柯基犬","description":"品种"},"gender":{"type":"number","example":1,"description":"性别（1=公，2=母）"},"colorFeature":{"type":"string","example":"黄白双色带橙色胸背","description":"外观特征"},"images":{"type":"array","items":{"type":"string"},"description":"近照列表"},"lastSeenAt":{"type":"string","example":"2026-11-26T18:30:00+08:00","description":"最后目击时间"},"lastSeenLng":{"type":"number","example":116.473,"description":"走失点 GCJ-02 经度"},"lastSeenLat":{"type":"number","example":39.993,"description":"走失点 GCJ-02 纬度"},"lastSeenAddress":{"type":"string","example":"望京公园南门","description":"走失地址"},"contactName":{"type":"string","example":"林女士","description":"联系人"},"contactPhone":{"type":"string","example":"13800138000","description":"联系电话"},"rewardNote":{"type":"string","example":"重谢 1000 元","description":"酬谢说明"},"clueCount":{"type":"number","example":2,"description":"累计目击线索数"},"expiresAt":{"type":"string","example":"2026-11-29T18:30:00+08:00","description":"过期时间"},"status":{"type":"string","enum":["searching","found","closed","removed"],"example":"searching","description":"广播状态"},"distanceM":{"type":"number","example":320,"description":"距检索坐标距离（米）"},"createdAt":{"type":"string","example":"2026-11-26T18:35:00+08:00","description":"创建时间"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"标记已平安找回","tags":["紧急寻宠广播"],"x-petcircle-auth-realm":"app"}},"/api/app/care/health-records":{"get":{"description":"`[C 端鉴权]`\n\n校验共养权限后查询宠物体重、疫苗、驱虫、排便与就诊记录。","operationId":"CarePlanController_listHealthRecords","parameters":[{"name":"petId","required":true,"in":"query","description":"宠物档案 ID","schema":{"example":1,"type":"number"}},{"name":"recordType","required":false,"in":"query","description":"健康记录类型筛选","schema":{"enum":["weight","vaccine","dewormIn","dewormOut","poop","medical"],"type":"string"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"petId":{"type":"number","example":1},"recorderId":{"type":"number","example":1},"recorderName":{"type":"string","example":"团子妈妈"},"recordType":{"type":"string","enum":["weight","vaccine","dewormIn","dewormOut","poop","medical"],"example":"weight"},"recordedAt":{"type":"string","example":"2026-11-26T09:30:00+08:00"},"weightKg":{"type":"number","nullable":true,"example":11.4},"poopStatus":{"type":"string","enum":["normal","soft","diarrhea","constipation"],"nullable":true,"example":null},"title":{"type":"string","example":"本月称重记录"},"nextDueDate":{"type":"string","nullable":true,"example":"2026-12-26"},"images":{"type":"array","items":{"type":"string"}},"remark":{"type":"string","example":"状态良好"},"createdAt":{"type":"string","example":"2026-11-26T09:30:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取健康时间轴","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"},"post":{"description":"`[C 端鉴权]`\n\n记录体重时自动同步更新宠档最新体重，记录排便时供今日看板触发连续软便/腹泻预警。","operationId":"CarePlanController_createHealthRecord","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHealthRecordDto"}}}},"responses":{"200":{"description":"创建成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"创建成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"petId":{"type":"number","example":1},"recorderId":{"type":"number","example":1},"recorderName":{"type":"string","example":"团子妈妈"},"recordType":{"type":"string","enum":["weight","vaccine","dewormIn","dewormOut","poop","medical"],"example":"weight"},"recordedAt":{"type":"string","example":"2026-11-26T09:30:00+08:00"},"weightKg":{"type":"number","nullable":true,"example":11.4},"poopStatus":{"type":"string","enum":["normal","soft","diarrhea","constipation"],"nullable":true,"example":null},"title":{"type":"string","example":"本月称重记录"},"nextDueDate":{"type":"string","nullable":true,"example":"2026-12-26"},"images":{"type":"array","items":{"type":"string"}},"remark":{"type":"string","example":"状态良好"},"createdAt":{"type":"string","example":"2026-11-26T09:30:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"新增健康记录","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"}},"/api/app/care/plans":{"get":{"description":"`[C 端鉴权]`\n\n返回指定宠物名下的全部周期护理与训练计划定义。","operationId":"CarePlanController_listPlans","parameters":[{"name":"petId","required":true,"in":"query","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"petId":{"type":"number","example":1},"creatorId":{"type":"number","example":1},"category":{"type":"string","enum":["walk","feed","litter","medicine","grooming","deworm","vaccine","training"],"example":"walk"},"title":{"type":"string","example":"晚间出门遛弯 30 分钟"},"cycleType":{"type":"string","enum":["once","daily","weekly","monthly","intervalDays"],"example":"daily"},"cycleConfig":{"type":"object","additionalProperties":true,"example":{}},"startDate":{"type":"string","example":"2026-11-26"},"remindTime":{"type":"string","nullable":true,"example":"19:30"},"isActive":{"type":"boolean","example":true},"createdAt":{"type":"string","example":"2026-11-26T09:00:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取宠物日程计划列表","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"},"post":{"description":"`[C 端鉴权]`\n\n支持一次/每日/每周/每月/间隔天数周期配置，覆盖猫狗异宠全科目护理。","operationId":"CarePlanController_createPlan","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCarePlanDto"}}}},"responses":{"200":{"description":"创建成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"创建成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"petId":{"type":"number","example":1},"creatorId":{"type":"number","example":1},"category":{"type":"string","enum":["walk","feed","litter","medicine","grooming","deworm","vaccine","training"],"example":"walk"},"title":{"type":"string","example":"晚间出门遛弯 30 分钟"},"cycleType":{"type":"string","enum":["once","daily","weekly","monthly","intervalDays"],"example":"daily"},"cycleConfig":{"type":"object","additionalProperties":true,"example":{}},"startDate":{"type":"string","example":"2026-11-26"},"remindTime":{"type":"string","nullable":true,"example":"19:30"},"isActive":{"type":"boolean","example":true},"createdAt":{"type":"string","example":"2026-11-26T09:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"创建护理计划","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"}},"/api/app/care/plans/{id}/toggle":{"patch":{"description":"`[C 端鉴权]`\n\n切换护理日程的激活状态。","operationId":"CarePlanController_togglePlan","parameters":[{"name":"id","required":true,"in":"path","description":"护理计划 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TogglePlanDto"}}}},"responses":{"200":{"description":"切换成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"切换成功","description":"业务提示信息"},"data":{"type":"object","properties":{"isActive":{"type":"boolean","example":true,"description":"更新后的激活状态"}},"required":["isActive"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"启停护理计划","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"}},"/api/app/care/today-board":{"get":{"description":"`[C 端鉴权]`\n\n汇总当前用户共养全部活跃宠物的当日应执行任务、家人打卡状态与 24h 肠胃异常预警宠物清单。","operationId":"CarePlanController_getTodayBoard","parameters":[{"name":"scheduledDate","required":false,"in":"query","description":"目标东八区日历日（YYYY-MM-DD，默认当天）","schema":{"example":"2026-11-26","type":"string"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object","properties":{"scheduledDate":{"type":"string","example":"2026-11-26"},"tasks":{"type":"array","items":{"type":"object","properties":{"planId":{"type":"number","example":1},"petId":{"type":"number","example":1},"petSpecies":{"type":"string","enum":["dog","cat","other"],"example":"dog"},"petName":{"type":"string","example":"团子"},"petAvatar":{"type":"string","example":""},"category":{"type":"string","example":"walk"},"title":{"type":"string","example":"晚间出门遛弯 30 分钟"},"remindTime":{"type":"string","nullable":true,"example":"19:30"},"isCompleted":{"type":"boolean","example":false},"completedAt":{"type":"string","nullable":true,"example":null},"executorName":{"type":"string","nullable":true,"example":null},"executorRelation":{"type":"string","nullable":true,"example":null},"sourceType":{"type":"string","nullable":true,"example":null},"trainingNote":{"type":"string","example":""}}}},"diarrheaAlertPetIds":{"type":"array","items":{"type":"number"},"example":[]}},"required":["scheduledDate","tasks","diarrheaAlertPetIds"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取今日全家庭待办看板","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"}},"/api/app/care/plans/{id}/checkin":{"post":{"description":"`[C 端鉴权]`\n\n标记当日任务已完成并由 WebSocket `/ws-app` 实时同步至同家庭其他共养成员设备。","operationId":"CarePlanController_checkinPlan","parameters":[{"name":"id","required":true,"in":"path","description":"护理计划 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckinPlanDto"}}}},"responses":{"200":{"description":"打卡成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"打卡成功","description":"业务提示信息"},"data":{"type":"object","properties":{"planId":{"type":"number","example":1},"petId":{"type":"number","example":1},"petSpecies":{"type":"string","enum":["dog","cat","other"],"example":"dog"},"petName":{"type":"string","example":"团子"},"petAvatar":{"type":"string","example":""},"category":{"type":"string","example":"walk"},"title":{"type":"string","example":"晚间出门遛弯 30 分钟"},"remindTime":{"type":"string","nullable":true,"example":"19:30"},"isCompleted":{"type":"boolean","example":false},"completedAt":{"type":"string","nullable":true,"example":null},"executorName":{"type":"string","nullable":true,"example":null},"executorRelation":{"type":"string","nullable":true,"example":null},"sourceType":{"type":"string","nullable":true,"example":null},"trainingNote":{"type":"string","example":""}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"完成护理日程打卡","tags":["护理日程与健康记录"],"x-petcircle-auth-realm":"app"}},"/api/app/pois/map-config":{"get":{"description":"`[可选鉴权]`\n\n返回脱敏后的高德 JSAPI Key 与默认降级城市中心点（安全码由后端代理注入）。","operationId":"MapPoiController_getMapClientConfig","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object","properties":{"amapJsKey":{"type":"string"},"defaultCenter":{"type":"object","properties":{"lng":{"type":"number","example":116.482276},"lat":{"type":"number","example":39.944093}}},"defaultCityName":{"type":"string","example":"北京市"},"defaultCityAdcode":{"type":"string","example":"110105"}}}},"required":["code","message","data"]}}}}},"security":[{"appBearer":[]},{}],"summary":"获取地图客户端公开配置","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/ip-city":{"get":{"description":"`[可选鉴权]`\n\n根据客户端 IP 通过高德 IP 定位接口解析当前城市名称、区划码与中心点坐标。","operationId":"MapPoiController_locateIpCity","parameters":[],"responses":{"200":{"description":"定位成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"定位成功","description":"业务提示信息"},"data":{"type":"object","properties":{"cityName":{"type":"string","example":"北京市"},"cityAdcode":{"type":"string","example":"110105"},"lng":{"type":"number","example":116.482276},"lat":{"type":"number","example":39.944093}}}},"required":["code","message","data"]}}}}},"security":[{"appBearer":[]},{}],"summary":"IP 城市自动定位","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/viewport":{"get":{"description":"`[可选鉴权]`\n\n基于 PostGIS ST_Within 拉取当前视野内的有效避雷/友好场所/便民设施点位（上限 300 条）。","operationId":"MapPoiController_getViewport","parameters":[{"name":"minLng","required":false,"in":"query","description":"视野西南角经度","schema":{"example":116.38,"type":"number"}},{"name":"minLat","required":false,"in":"query","description":"视野西南角纬度","schema":{"example":39.88,"type":"number"}},{"name":"maxLng","required":false,"in":"query","description":"视野东北角经度","schema":{"example":116.58,"type":"number"}},{"name":"maxLat","required":false,"in":"query","description":"视野东北角纬度","schema":{"example":40.02,"type":"number"}},{"name":"poiCategory","required":false,"in":"query","description":"按点位大类筛选","schema":{"enum":["hazard","friendlyPlace","facility"],"type":"string"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"creatorId":{"type":"number","example":1},"poiCategory":{"type":"string","enum":["hazard","friendlyPlace","facility"],"example":"friendlyPlace"},"subType":{"type":"string","example":"lawn"},"sourceType":{"type":"string","enum":["userUgc","amapSeed","official"],"example":"userUgc"},"title":{"type":"string","example":"望京公园南门大草坪"},"description":{"type":"string","example":"可牵绳遛狗，附近有直饮水点"},"lng":{"type":"number","example":116.4732},"lat":{"type":"number","example":39.9931},"cityAdcode":{"type":"string","example":"110105"},"address":{"type":"string","example":"北京市朝阳区望京公园南门"},"accessTags":{"type":"array","items":{"type":"string"},"example":["needLeash"]},"images":{"type":"array","items":{"type":"string"}},"claimedMerchantId":{"type":"number","nullable":true,"example":null},"confirmCount":{"type":"number","example":3},"resolveCount":{"type":"number","example":0},"reportCount":{"type":"number","example":0},"expiresAt":{"type":"string","nullable":true,"example":null},"status":{"type":"string","enum":["active","resolved","expired","pendingAudit","removed"],"example":"active"},"myVoteType":{"type":"string","nullable":true,"enum":["confirm","resolve"],"example":null},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"视野范围查询地图 POI","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/detail/{id}":{"get":{"description":"`[可选鉴权]`\n\n按主键拉取有效（active 且未过期）社区点位详情，已失效或不存在返回 null。","operationId":"MapPoiController_getPoiDetail","parameters":[{"name":"id","required":true,"in":"path","description":"地图点位 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"获取单条社区点位详情","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois":{"post":{"description":"`[C 端鉴权]`\n\n上报周边避雷风险、宠物友好场所或便民设施；避雷点位自动设置时效期并触发图文审核。","operationId":"MapPoiController_createPoi","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMapPoiDto"}}}},"responses":{"200":{"description":"发布成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"发布成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"creatorId":{"type":"number","example":1},"poiCategory":{"type":"string","enum":["hazard","friendlyPlace","facility"],"example":"friendlyPlace"},"subType":{"type":"string","example":"lawn"},"sourceType":{"type":"string","enum":["userUgc","amapSeed","official"],"example":"userUgc"},"title":{"type":"string","example":"望京公园南门大草坪"},"description":{"type":"string","example":"可牵绳遛狗，附近有直饮水点"},"lng":{"type":"number","example":116.4732},"lat":{"type":"number","example":39.9931},"cityAdcode":{"type":"string","example":"110105"},"address":{"type":"string","example":"北京市朝阳区望京公园南门"},"accessTags":{"type":"array","items":{"type":"string"},"example":["needLeash"]},"images":{"type":"array","items":{"type":"string"}},"claimedMerchantId":{"type":"number","nullable":true,"example":null},"confirmCount":{"type":"number","example":3},"resolveCount":{"type":"number","example":0},"reportCount":{"type":"number","example":0},"expiresAt":{"type":"string","nullable":true,"example":null},"status":{"type":"string","enum":["active","resolved","expired","pendingAudit","removed"],"example":"active"},"myVoteType":{"type":"string","nullable":true,"enum":["confirm","resolve"],"example":null},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"发布地图共建点位","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app"}},"/api/app/pois/{id}/vote":{"post":{"description":"`[C 端鉴权]`\n\n确认风险仍存在或标记已清理解除；当解除票数达到阈值且高于确认票时自动流转为 resolved。","operationId":"MapPoiController_votePoi","parameters":[{"name":"id","required":true,"in":"path","description":"地图点位 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteMapPoiDto"}}}},"responses":{"200":{"description":"投票成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"投票成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"creatorId":{"type":"number","example":1},"poiCategory":{"type":"string","enum":["hazard","friendlyPlace","facility"],"example":"friendlyPlace"},"subType":{"type":"string","example":"lawn"},"sourceType":{"type":"string","enum":["userUgc","amapSeed","official"],"example":"userUgc"},"title":{"type":"string","example":"望京公园南门大草坪"},"description":{"type":"string","example":"可牵绳遛狗，附近有直饮水点"},"lng":{"type":"number","example":116.4732},"lat":{"type":"number","example":39.9931},"cityAdcode":{"type":"string","example":"110105"},"address":{"type":"string","example":"北京市朝阳区望京公园南门"},"accessTags":{"type":"array","items":{"type":"string"},"example":["needLeash"]},"images":{"type":"array","items":{"type":"string"}},"claimedMerchantId":{"type":"number","nullable":true,"example":null},"confirmCount":{"type":"number","example":3},"resolveCount":{"type":"number","example":0},"reportCount":{"type":"number","example":0},"expiresAt":{"type":"string","nullable":true,"example":null},"status":{"type":"string","enum":["active","resolved","expired","pendingAudit","removed"],"example":"active"},"myVoteType":{"type":"string","nullable":true,"enum":["confirm","resolve"],"example":null},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"地图点位众包投票","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app"}},"/api/app/pois/regeo":{"get":{"description":"`[可选鉴权]`\n\n将 GCJ-02 坐标解析为标准行政区划及格式化地址，可选返回周边候选 POI 列表。","operationId":"MapPoiController_regeo","parameters":[{"name":"lng","required":true,"in":"query","description":"GCJ-02 经度","schema":{"example":116.482276,"type":"number"}},{"name":"lat","required":true,"in":"query","description":"GCJ-02 纬度","schema":{"example":39.944093,"type":"number"}},{"name":"includePois","required":false,"in":"query","description":"是否附带周边 POI 吸附列表","schema":{"enum":["true","false"],"type":"string","example":"true"}}],"responses":{"200":{"description":"解析成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"解析成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"逆地理编码解析","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/search":{"get":{"description":"`[可选鉴权]`\n\n联合检索个人收藏点、平台共建 POI、周边寻宠广播与高德公开地点。","operationId":"MapPoiController_searchMap","parameters":[{"name":"lng","required":false,"in":"query","description":"参考基准 GCJ-02 经度","schema":{"example":116.482276,"type":"number"}},{"name":"lat","required":false,"in":"query","description":"参考基准 GCJ-02 纬度","schema":{"example":39.944093,"type":"number"}},{"name":"cityAdcode","required":false,"in":"query","description":"限定城市 6 位 adcode","schema":{"example":"110105","type":"string"}},{"name":"keyword","required":false,"in":"query","description":"搜索关键词","schema":{"example":"朝阳公园","type":"string"}}],"responses":{"200":{"description":"检索成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"检索成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"地图混合关键词检索","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/amap-detail":{"get":{"description":"`[可选鉴权]`\n\n按高德 POI ID 拉取营业时间、评分、电话及附属出入口等详细资料。","operationId":"MapPoiController_getAmapPoiDetail","parameters":[{"name":"lng","required":false,"in":"query","description":"参考基准 GCJ-02 经度","schema":{"type":"number"}},{"name":"lat","required":false,"in":"query","description":"参考基准 GCJ-02 纬度","schema":{"type":"number"}},{"name":"amapPoiId","required":true,"in":"query","description":"高德公开 POI ID","schema":{"type":"string"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"获取高德地点详情","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/inspect-region":{"get":{"description":"`[可选鉴权]`\n\n根据坐标或高德 POI ID 识别行政区/AOI 多边形边界、出入口子点及 3km 内快速通勤预览。","operationId":"MapPoiController_inspectRegion","parameters":[{"name":"lng","required":false,"in":"query","description":"目标 GCJ-02 经度","schema":{"type":"number"}},{"name":"lat","required":false,"in":"query","description":"目标 GCJ-02 纬度","schema":{"type":"number"}},{"name":"amapPoiId","required":false,"in":"query","description":"高德 POI ID","schema":{"type":"string"}},{"name":"keyword","required":false,"in":"query","description":"地名关键词","schema":{"type":"string"}},{"name":"typecode","required":false,"in":"query","description":"高德分类编码","schema":{"type":"string"}},{"name":"userLng","required":false,"in":"query","description":"用户当前经度（3km 内计算通勤预览）","schema":{"type":"number"}},{"name":"userLat","required":false,"in":"query","description":"用户当前纬度（3km 内计算通勤预览）","schema":{"type":"number"}},{"name":"exactPoint","required":false,"in":"query","description":"是否精确落钉选点（不吸附外层 AOI）","schema":{"enum":["true","false"],"type":"string"}}],"responses":{"200":{"description":"探测成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"探测成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"探测选中区域与多边形轮廓","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true}},"/api/app/pois/my-pins":{"get":{"description":"`[C 端鉴权]`\n\n仅返回当前登录用户自己保存的私有地图标记点。","operationId":"MapPoiController_listMyPins","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"userId":{"type":"number","example":1},"sourceKind":{"type":"string","enum":["place","poi","custom"],"example":"place"},"amapPoiId":{"type":"string","nullable":true,"example":"B000A83C6P"},"poiId":{"type":"number","nullable":true,"example":null},"title":{"type":"string","example":"晚八点遛弯集合点"},"remark":{"type":"string","example":"柯基小队常聚地点"},"address":{"type":"string","example":"朝阳公园南门草坪"},"lng":{"type":"number","example":116.482276},"lat":{"type":"number","example":39.944093},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"},"updatedAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"获取个人地图标记列表","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app"},"post":{"description":"`[C 端鉴权]`\n\n保存个人常用遛宠集合点或备忘位置坐标（同点位自动幂等去重）。","operationId":"MapPoiController_createMyPin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMapUserPinDto"}}}},"responses":{"200":{"description":"保存成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"保存成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"userId":{"type":"number","example":1},"sourceKind":{"type":"string","enum":["place","poi","custom"],"example":"place"},"amapPoiId":{"type":"string","nullable":true,"example":"B000A83C6P"},"poiId":{"type":"number","nullable":true,"example":null},"title":{"type":"string","example":"晚八点遛弯集合点"},"remark":{"type":"string","example":"柯基小队常聚地点"},"address":{"type":"string","example":"朝阳公园南门草坪"},"lng":{"type":"number","example":116.482276},"lat":{"type":"number","example":39.944093},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"},"updatedAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"新建个人地图标记","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app"}},"/api/app/pois/my-pins/{id}":{"patch":{"description":"`[C 端鉴权]`\n\n仅允许创建者本人修改个人收藏点的名称与备注。","operationId":"MapPoiController_updateMyPin","parameters":[{"name":"id","required":true,"in":"path","description":"个人标记 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMapUserPinDto"}}}},"responses":{"200":{"description":"更新成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"更新成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"userId":{"type":"number","example":1},"sourceKind":{"type":"string","enum":["place","poi","custom"],"example":"place"},"amapPoiId":{"type":"string","nullable":true,"example":"B000A83C6P"},"poiId":{"type":"number","nullable":true,"example":null},"title":{"type":"string","example":"晚八点遛弯集合点"},"remark":{"type":"string","example":"柯基小队常聚地点"},"address":{"type":"string","example":"朝阳公园南门草坪"},"lng":{"type":"number","example":116.482276},"lat":{"type":"number","example":39.944093},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"},"updatedAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"编辑个人地图收藏","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app"},"delete":{"description":"`[C 端鉴权]`\n\n仅允许创建者本人删除个人私有地图标记。","operationId":"MapPoiController_deleteMyPin","parameters":[{"name":"id","required":true,"in":"path","description":"个人标记 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"删除成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"删除成功","description":"业务提示信息"},"data":{"type":"object","properties":{"deletedId":{"type":"number","example":1}},"required":["deletedId"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"删除个人地图标记","tags":["本地互助地图与 POI"],"x-petcircle-auth-realm":"app"}},"/api/app/community/posts":{"get":{"description":"`[可选鉴权]`\n\n支持按城市区划筛选，已登录用户自动排除互相拉黑对象的动态。","operationId":"CommunityController_listPosts","parameters":[{"name":"cityAdcode","required":false,"in":"query","description":"城市 6 位 adcode 筛选","schema":{"example":"110105","type":"string"}},{"name":"page","required":false,"in":"query","description":"页码（默认 1）","schema":{"example":1,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"每页条数（1~30，默认 15）","schema":{"example":15,"type":"number"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"userId":{"type":"number","example":1},"authorNickname":{"type":"string","example":"团子妈妈"},"authorAvatar":{"type":"string","example":""},"authorHasVerifiedPet":{"type":"boolean","example":true},"petIds":{"type":"array","items":{"type":"number"},"example":[1]},"petNames":{"type":"array","items":{"type":"string"},"example":["团子"]},"content":{"type":"string","example":"周末望京公园晒太阳~"},"images":{"type":"array","items":{"type":"string"}},"placeName":{"type":"string","example":"望京公园"},"cityAdcode":{"type":"string","example":"110105"},"likeCount":{"type":"number","example":12},"commentCount":{"type":"number","example":3},"isLikedByMe":{"type":"boolean","example":false},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"分页查询宠友广场动态","tags":["宠友广场与内容风控"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true},"post":{"description":"`[C 端鉴权]`\n\n发布图文动态并绑定关联宠物与位置，经微信文本与图片内容安全检测。","operationId":"CommunityController_createPost","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostDto"}}}},"responses":{"200":{"description":"发布成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"发布成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":101}},"required":["id"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"发布广场动态","tags":["宠友广场与内容风控"],"x-petcircle-auth-realm":"app"}},"/api/app/community/posts/{id}/like":{"post":{"description":"`[C 端鉴权]`\n\n幂等切换点赞状态并返回最新点赞总数。","operationId":"CommunityController_toggleLike","parameters":[{"name":"id","required":true,"in":"path","description":"动态 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"操作成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"操作成功","description":"业务提示信息"},"data":{"type":"object","properties":{"liked":{"type":"boolean","example":true},"likeCount":{"type":"number","example":13}},"required":["liked","likeCount"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"点赞或取消点赞动态","tags":["宠友广场与内容风控"],"x-petcircle-auth-realm":"app"}},"/api/app/community/posts/{id}/comments":{"get":{"description":"`[可选鉴权]`\n\n返回公开状态的动态评论列表。","operationId":"CommunityController_listComments","parameters":[{"name":"id","required":true,"in":"path","description":"动态 ID","schema":{"example":1,"type":"number"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":1},"postId":{"type":"number","example":1},"userId":{"type":"number","example":2},"authorNickname":{"type":"string","example":"团子爸爸"},"authorAvatar":{"type":"string","example":""},"content":{"type":"string","example":"好可爱！"},"createdAt":{"type":"string","example":"2026-11-26T10:05:00+08:00"}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]},{}],"summary":"获取动态评论列表","tags":["宠友广场与内容风控"],"x-petcircle-auth-realm":"app","x-petcircle-optional-auth":true},"post":{"description":"`[C 端鉴权]`\n\n校验正文安全性后新增评论并累加动态评论计数。","operationId":"CommunityController_createComment","parameters":[{"name":"id","required":true,"in":"path","description":"动态 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentDto"}}}},"responses":{"200":{"description":"评论成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"评论成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"postId":{"type":"number","example":1},"userId":{"type":"number","example":2},"authorNickname":{"type":"string","example":"团子爸爸"},"authorAvatar":{"type":"string","example":""},"content":{"type":"string","example":"好可爱！"},"createdAt":{"type":"string","example":"2026-11-26T10:05:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"发表动态评论","tags":["宠友广场与内容风控"],"x-petcircle-auth-realm":"app"}},"/api/app/community/reports":{"post":{"description":"`[C 端鉴权]`\n\n举报违规点位、动态、评论、用户或寻宠广播，流转至运营后台核查处置。","operationId":"CommunityController_submitReport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportDto"}}}},"responses":{"200":{"description":"举报提交成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"举报提交成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"提交社区举报","tags":["宠友广场与内容风控"],"x-petcircle-auth-realm":"app"}},"/api/app/leads/sitter-apply":{"post":{"description":"`[C 端鉴权]`\n\n加密保存申请人身份证号并返回脱敏审核回执，同时同步更新个人资料中的认证进度状态。","operationId":"EcoLeadController_submitSitterApply","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitSitterApplyDto"}}}},"responses":{"200":{"description":"提交成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"提交成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"userId":{"type":"number","example":1},"realName":{"type":"string","example":"陈晓"},"idCardMasked":{"type":"string","example":"1101**********1234","description":"脱敏身份证号"},"phone":{"type":"string","example":"13900139000"},"cityAdcode":{"type":"string","example":"110105"},"auditStatus":{"type":"string","enum":["pending","approved","rejected"],"example":"pending"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"提交宠托师预报名","tags":["生态蓄水与合作线索"],"x-petcircle-auth-realm":"app"}},"/api/app/leads/merchant-claim":{"post":{"description":"`[C 端鉴权]`\n\n支持认领地图已有 POI 点位或提报新宠物友好门店入驻。","operationId":"EcoLeadController_submitMerchantClaim","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitMerchantLeadDto"}}}},"responses":{"200":{"description":"提交成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"提交成功","description":"业务提示信息"},"data":{"type":"object","properties":{"id":{"type":"number","example":1},"userId":{"type":"number","example":1},"targetPoiId":{"type":"number","nullable":true,"example":12},"shopName":{"type":"string","example":"爪印森林宠物友好咖啡馆"},"auditStatus":{"type":"string","enum":["pending","approved","rejected"],"example":"pending"},"createdAt":{"type":"string","example":"2026-11-26T10:00:00+08:00"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"appBearer":[]}],"summary":"提交友好商户认领意向","tags":["生态蓄水与合作线索"],"x-petcircle-auth-realm":"app"}},"/api/admin/auth/login":{"post":{"description":"`[公开接口]`\n\n校验后台账号密码后签发 12 小时有效的 adminBearer JWT。","operationId":"AdminController_login","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginDto"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"登录成功","description":"业务提示信息"},"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"后台 JWT 访问令牌"},"admin":{"type":"object","properties":{"id":{"type":"number","example":1},"username":{"type":"string","example":"admin"},"displayName":{"type":"string","example":"超级管理员"},"roleCode":{"type":"string","example":"super_admin"},"roleName":{"type":"string","example":"超级管理员"},"permissions":{"type":"array","items":{"type":"string"},"example":["*"]}}}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[],"summary":"管理员登录","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-public":true}},"/api/admin/auth/profile":{"get":{"description":"`[后台鉴权]`\n\n返回当前后台令牌解析出的角色与权限码清单。","operationId":"AdminController_getProfile","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"获取当前管理员资料","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin"}},"/api/admin/dashboard/stats":{"get":{"description":"`[后台鉴权]`\n\n统计活跃用户、宠物档案、生效避雷点、寻宠广播及待审犬证/举报/线索总量。","operationId":"AdminController_getDashboard","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"type":"object","properties":{"totalUsers":{"type":"number","example":3},"totalPets":{"type":"number","example":4},"activeHazardCount":{"type":"number","example":1},"searchingLostCount":{"type":"number","example":1},"pendingLicenseCount":{"type":"number","example":1},"pendingReportCount":{"type":"number","example":0},"pendingLeadCount":{"type":"number","example":2}}}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"获取运营看板概览","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin"}},"/api/admin/pois/amap-seed":{"post":{"description":"`[后台鉴权]` `[后台权限: poi:manage]`\n\n拉取指定城市的公开公园、宠物医院与友好商圈点位去重入库。","operationId":"AdminController_seedCity","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedCityPoisDto"}}}},"responses":{"200":{"description":"铺底完成","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"铺底完成","description":"业务提示信息"},"data":{"type":"object","properties":{"insertedCount":{"type":"number","example":18}},"required":["insertedCount"]}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"高德公开 POI 开城铺底","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["poi:manage"]}},"/api/admin/pois":{"get":{"description":"`[后台鉴权]` `[后台权限: poi:manage]`\n\n按状态与大类筛选平台全部地图共建及高德铺底点位（上限 200 条）。","operationId":"AdminController_listPois","parameters":[{"name":"status","required":false,"in":"query","description":"点位状态","schema":{"enum":["active","resolved","expired","pendingAudit","removed"],"type":"string"}},{"name":"poiCategory","required":false,"in":"query","description":"点位大类","schema":{"enum":["hazard","friendlyPlace","facility"],"type":"string"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"查询地图点位列表","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["poi:manage"]}},"/api/admin/pois/{id}/status":{"patch":{"description":"`[后台鉴权]` `[后台权限: poi:manage]`\n\n审核通过、标记解除或下架指定地图点位。","operationId":"AdminController_updatePoiStatus","parameters":[{"name":"id","required":true,"in":"path","description":"地图点位 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePoiStatusDto"}}}},"responses":{"200":{"description":"修改成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"修改成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"修改地图点位状态","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["poi:manage"]}},"/api/admin/lost-alerts":{"get":{"description":"`[后台鉴权]` `[后台权限: poi:manage]`\n\n按时间倒序查看平台近 100 条紧急寻宠广播。","operationId":"AdminController_listLostAlerts","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"查询寻宠广播台账","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["poi:manage"]}},"/api/admin/lost-alerts/{id}/status":{"patch":{"description":"`[后台鉴权]` `[后台权限: poi:manage]`\n\n人工干预关闭或下架异常寻宠广播。","operationId":"AdminController_updateLostAlertStatus","parameters":[{"name":"id","required":true,"in":"path","description":"寻宠广播 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLostStatusDto"}}}},"responses":{"200":{"description":"修改成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"修改成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"修改寻宠广播状态","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["poi:manage"]}},"/api/admin/pets/licenses":{"get":{"description":"`[后台鉴权]` `[后台权限: pet:audit]`\n\n按认证状态筛选待审或已审宠物电子犬证/免疫证列表（默认 pending）。","operationId":"AdminController_listLicenses","parameters":[{"name":"licenseStatus","required":false,"in":"query","description":"证件认证状态","schema":{"enum":["none","pending","verified","rejected"],"type":"string","example":"pending"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"查询证件审核列表","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["pet:audit"]}},"/api/admin/pets/licenses/{petId}/audit":{"post":{"description":"`[后台鉴权]` `[后台权限: pet:audit]`\n\n核验犬证/免疫证图片并给出通过或驳回备注。","operationId":"AdminController_auditLicense","parameters":[{"name":"petId","required":true,"in":"path","description":"宠物档案 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLicenseDto"}}}},"responses":{"200":{"description":"审核完成","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"审核完成","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"审核宠物证件","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["pet:audit"]}},"/api/admin/reports":{"get":{"description":"`[后台鉴权]` `[后台权限: report:handle]`\n\n按处置状态筛选用户提交的举报工单（默认 pending）。","operationId":"AdminController_listReports","parameters":[{"name":"handleStatus","required":false,"in":"query","description":"工单处置状态","schema":{"enum":["pending","resolved","rejected"],"type":"string","example":"pending"}}],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"查询举报工单列表","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["report:handle"]}},"/api/admin/reports/{id}/handle":{"post":{"description":"`[后台鉴权]` `[后台权限: report:handle]`\n\n确认违规（resolved）时事务内同步下架对应 POI、动态、评论、寻宠广播或禁言涉事用户。","operationId":"AdminController_handleReport","parameters":[{"name":"id","required":true,"in":"path","description":"举报工单 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandleReportDto"}}}},"responses":{"200":{"description":"处置完成","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"处置完成","description":"业务提示信息"},"data":{"type":"object","properties":{"reportId":{"type":"number","example":1},"handleStatus":{"type":"string","enum":["resolved","rejected"],"example":"resolved"}}}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"处置举报工单","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["report:handle"]}},"/api/admin/leads/sitters":{"get":{"description":"`[后台鉴权]` `[后台权限: lead:export]`\n\n列出宠托师预报名信息（身份证字段仅展示脱敏字符串）。","operationId":"AdminController_listSitters","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"查询宠托师报名线索","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["lead:export"]}},"/api/admin/leads/sitters/{id}/audit":{"patch":{"description":"`[后台鉴权]` `[后台权限: lead:export]`\n\n更新宠托师报名线索的审核结论与备注。","operationId":"AdminController_auditSitter","parameters":[{"name":"id","required":true,"in":"path","description":"宠托师报名记录 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLeadDto"}}}},"responses":{"200":{"description":"审核完成","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"审核完成","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"审核宠托师预报名","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["lead:export"]}},"/api/admin/leads/merchants":{"get":{"description":"`[后台鉴权]` `[后台权限: lead:export]`\n\n列出商户认领或新入驻提报台账。","operationId":"AdminController_listMerchants","parameters":[],"responses":{"200":{"description":"获取成功","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"获取成功","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"查询友好商户认领线索","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["lead:export"]}},"/api/admin/leads/merchants/{id}/audit":{"patch":{"description":"`[后台鉴权]` `[后台权限: lead:export]`\n\n审核通过且关联 targetPoiId 时，事务内自动将对应地图 POI 标记为官方认领来源。","operationId":"AdminController_auditMerchant","parameters":[{"name":"id","required":true,"in":"path","description":"商户线索记录 ID","schema":{"example":1,"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLeadDto"}}}},"responses":{"200":{"description":"审核完成","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"审核完成","description":"业务提示信息"},"data":{"description":"业务返回载荷","nullable":true}},"required":["code","message","data"]}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"审核友好商户线索","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["lead:export"]}},"/api/admin/leads/export":{"get":{"description":"`[后台鉴权]` `[后台权限: lead:export]`\n\n生成并下载 `.xlsx` 格式宠托师或友好商户台账文件。","operationId":"AdminController_exportLeads","parameters":[{"name":"type","required":false,"in":"query","description":"导出数据类型（默认 sitters）","schema":{"enum":["sitters","merchants"],"type":"string","example":"sitters"}}],"responses":{"200":{"description":"Excel 报表二进制文件流","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"请求参数校验失败（HTTP 400，body: { code: 0, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"未登录或访问令牌已失效（HTTP 401，body: { code: 401, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"当前后台账号缺少操作权限（HTTP 403，body: { code: 403, message, data: null }）","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"security":[{"adminBearer":[]}],"summary":"导出生态蓄水线索 Excel","tags":["运营管理后台"],"x-petcircle-auth-realm":"admin","x-petcircle-admin-perms":["lead:export"]}}},"info":{"title":"爱宠圈 PetCircle API","description":"爱宠圈多宠家庭共养、L4 本地互助地图与运营管理接口开发调试台（支持 C 端 / B 端双轨持票与自动续期）。\n\n**全局响应与异常契约：**\n- **统一成功信封**：`{ code: 200, message: \"操作成功\", data }`（文件导出返回二进制流，微信回调返回纯文本）。\n- **严格保留 HTTP 状态码**：`AllExceptionsFilter` 按真实状态码（`400/401/403/404/500`）返回 `{ code, message, data: null }`。\n- **双端鉴权严格隔离**：C 端使用 `appBearer`（`AppJwtGuard`），后台使用 `adminBearer`（`AdminRbacGuard`），互不通用。\n- **接口防篡改与防重放**：受 `ApiSecurityGuard` 保护（`x-timestamp` / `x-nonce` / `x-sign` HMAC-SHA256 验签 + Redis Nonce 防重放，调试台默认自动加签）。","version":"1.0","contact":{}},"tags":[{"name":"健康探针","description":"数据库、Redis 连通性与服务就绪状态探针"},{"name":"C 端认证","description":"微信小程序登录、本地开发预设登录与双 Token 刷新"},{"name":"个人中心与隐私","description":"C 端养宠人档案维护、手机绑定、黑名单与账号注销冷静期"},{"name":"宠物档案与家庭共养","description":"多物种宠物档案 CRUD、犬证/免疫证认证提交与家庭成员邀请"},{"name":"紧急寻宠广播","description":"周边 5km 走失广播发布、目击线索上报与归家销案"},{"name":"护理日程与健康记录","description":"健康时间轴、多端实时协作日程与打卡看板"},{"name":"本地互助地图与 POI","description":"L4 视野点位聚合、众包投票、高德检索、路径避雷与私有标记"},{"name":"宠友广场与内容风控","description":"同城宠友动态瀑布流、点赞评论与举报审核提交"},{"name":"生态蓄水与合作线索","description":"认证宠托师预报名与友好商户认领意向收集"},{"name":"文件存储与公共服务","description":"OSS 直传凭证签发与开发态本地图片上传托管"},{"name":"微信回调接入","description":"微信服务器验签与媒体内容安全异步审核结果回调"},{"name":"运营管理后台","description":"运营后台登录、看板概览、POI/证件/举报/生态线索审核与 Excel 导出"}],"servers":[{"url":"https://pet-dev.dianshangzhuanjia.com","description":"当前访问入口"}],"components":{"securitySchemes":{"appBearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"C 端养宠人访问令牌（AppJwtGuard）"},"adminBearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"运营管理后台访问令牌（AdminRbacGuard）"}},"schemas":{"WxLoginDto":{"type":"object","properties":{"code":{"type":"string","description":"微信小程序 wx.login 获取的临时登录凭证 code","example":"mock_code_mom"},"nickname":{"type":"string","description":"首次登录可选同步的用户昵称","example":"团子妈妈"},"avatar":{"type":"string","description":"首次登录可选同步的头像 URL","example":"https://cdn.example.com/avatar.jpg"}},"required":["code"]},"DevLoginDto":{"type":"object","properties":{"presetKey":{"type":"string","description":"本地开发测试角色预设键","enum":["mom","dad","neighbor"],"example":"mom"}},"required":["presetKey"]},"PhoneRegisterDto":{"type":"object","properties":{"phone":{"type":"string","description":"11 位中国大陆手机号","example":"13800138000"},"password":{"type":"string","description":"登录密码（8~32 位且同时包含字母和数字）","example":"PetCircle2026"},"nickname":{"type":"string","description":"可选社区昵称（最长 32 字符，留空自动生成）","maxLength":32,"example":"糯米麻麻"}},"required":["phone","password"]},"PhoneLoginDto":{"type":"object","properties":{"phone":{"type":"string","description":"11 位中国大陆手机号","example":"13800138000"},"password":{"type":"string","description":"登录密码","example":"PetCircle2026"}},"required":["phone","password"]},"SendSmsCodeDto":{"type":"object","properties":{"phone":{"type":"string","description":"11 位中国大陆手机号","example":"13800138000"},"scene":{"type":"string","description":"短信验证码业务场景","enum":["login","resetPassword","bindPhone"],"example":"login"}},"required":["phone","scene"]},"SmsLoginDto":{"type":"object","properties":{"phone":{"type":"string","description":"11 位中国大陆手机号","example":"13800138000"},"code":{"type":"string","description":"6 位数字短信验证码","example":"123456"}},"required":["phone","code"]},"ResetPasswordDto":{"type":"object","properties":{"phone":{"type":"string","description":"11 位中国大陆手机号","example":"13800138000"},"code":{"type":"string","description":"6 位数字短信验证码","example":"123456"},"newPassword":{"type":"string","description":"新登录密码（8~32 位且同时包含字母和数字）","example":"PetCircle2027"}},"required":["phone","code","newPassword"]},"PasskeyLoginVerifyDto":{"type":"object","properties":{"challengeId":{"type":"string","description":"login-options 接口返回的挑战 ID"},"credential":{"type":"object","description":"浏览器 navigator.credentials.get().toJSON() 返回载荷"}},"required":["challengeId","credential"]},"RefreshTokenDto":{"type":"object","properties":{"refreshToken":{"type":"string","description":"30 天有效期的 RefreshToken 字符串","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}},"required":["refreshToken"]},"LogoutDto":{"type":"object","properties":{"refreshToken":{"type":"string","description":"当前端持有的 RefreshToken 字符串"}}},"UpdateProfileDto":{"type":"object","properties":{"nickname":{"type":"string","description":"新用户昵称（最长 32 字符，触发文本安全审核）","maxLength":32,"example":"糯米麻麻"},"avatar":{"type":"string","description":"新头像图片公网访问地址（最长 512 字符）","maxLength":512,"example":"http://127.0.0.1:9200/uploads/avatars/demo.jpg"}}},"UpdatePasswordDto":{"type":"object","properties":{"currentPassword":{"type":"string","description":"已有密码时必填，首次设置密码可省略","example":"OldPass123"},"newPassword":{"type":"string","description":"新登录密码（8~32 位且同时包含字母和数字）","example":"NewPass123"}},"required":["newPassword"]},"BindPhoneDto":{"type":"object","properties":{"code":{"type":"string","description":"微信手机号授权按钮返回的动态令牌 code","example":"phone_auth_code_demo"}},"required":["code"]},"BindPhoneSmsDto":{"type":"object","properties":{"phone":{"type":"string","description":"11 位中国大陆手机号","example":"13800138000"},"code":{"type":"string","description":"6 位数字短信验证码","example":"123456"}},"required":["phone","code"]},"ConfirmMergeDto":{"type":"object","properties":{"mergeToken":{"type":"string","description":"绑定冲突后服务端签发的一次性合并确认令牌"}},"required":["mergeToken"]},"PasskeyRegisterOptionsDto":{"type":"object","properties":{"promotion":{"type":"boolean","description":"是否为登录后一键推广引导（true 时限定平台生物认证器）","example":false}}},"PasskeyRegisterVerifyDto":{"type":"object","properties":{"credential":{"type":"object","description":"浏览器 navigator.credentials.create().toJSON() 返回载荷"},"deviceLabel":{"type":"string","description":"可选设备展示别名","maxLength":64}},"required":["credential"]},"RenamePasskeyDto":{"type":"object","properties":{"displayName":{"type":"string","description":"新的通行密钥设备别名","maxLength":64,"example":"我的 MacBook Touch ID"}},"required":["displayName"]},"UploadPolicyDto":{"type":"object","properties":{"folder":{"type":"string","description":"业务存储目录前缀（如 dog-avatars、map-pois、social-posts）","example":"dog-avatars"},"fileExt":{"type":"string","description":"目标文件扩展名（默认 .jpg）","example":".jpg"}},"required":["folder"]},"UpsertPetDto":{"type":"object","properties":{"species":{"type":"string","description":"宠物物种大类","enum":["dog","cat","other"],"example":"dog"},"name":{"type":"string","description":"宠物昵称","example":"团子"},"avatar":{"type":"string","description":"宠物头像 URL","example":"http://127.0.0.1:9200/uploads/dog-avatars/demo.jpg"},"breed":{"type":"string","description":"宠物品种名称（最长 32 字符）","maxLength":32,"example":"威尔士柯基犬"},"gender":{"type":"number","description":"宠物性别（1=公，2=母）","enum":[1,2],"minimum":1,"maximum":2,"example":1},"isSterilized":{"type":"boolean","description":"是否已绝育","example":true},"birthDate":{"type":"object","description":"出生日期（YYYY-MM-DD）","nullable":true,"example":"2024-03-15"},"adoptDate":{"type":"object","description":"领养/到家日期（YYYY-MM-DD）","nullable":true,"example":"2024-05-20"},"sizeType":{"type":"string","description":"宠物体型分级","enum":["small","medium","large","giant"],"example":"medium"},"weightKg":{"type":"object","description":"当前体重（单位：kg）","nullable":true,"example":11.5},"personalityTags":{"description":"性格标签数组","example":["亲人","贪吃","怕雷声"],"type":"array","items":{"type":"string"}},"allergyMedicalNote":{"type":"string","description":"过敏史或既往病史备注","example":"对鸡肉冻干轻微敏感"}},"required":["species","name","breed","gender","isSterilized","sizeType","personalityTags"]},"SubmitPetLicenseDto":{"type":"object","properties":{"licenseNo":{"type":"string","description":"证件编号（犬证号或疫苗本编号）","example":"BJ-CY-2026-008812"},"licenseImages":{"description":"证件实拍图 URL 列表","example":["http://127.0.0.1:9200/uploads/dog-licenses/demo.jpg"],"type":"array","items":{"type":"string"}}},"required":["licenseNo","licenseImages"]},"AcceptPetInviteDto":{"type":"object","properties":{"relationLabel":{"type":"string","description":"加入者在家庭中的称谓标签","example":"爸爸"}},"required":["relationLabel"]},"CreateLostAlertDto":{"type":"object","properties":{"petId":{"type":"object","description":"关联宠物档案 ID（未建档直接发布时可为空）","nullable":true,"example":1},"species":{"type":"string","description":"走失宠物物种大类","enum":["dog","cat","other"],"example":"dog"},"petName":{"type":"string","description":"宠物名称","example":"团子"},"breed":{"type":"string","description":"宠物品种（最长 32 字符）","maxLength":32,"example":"柯基犬"},"gender":{"type":"number","description":"性别（1=公，2=母）","enum":[1,2],"minimum":1,"maximum":2,"example":1},"colorFeature":{"type":"string","description":"毛色、项圈或显著外观特征描述","example":"黄白双色，佩戴橙色反光胸背带"},"images":{"description":"走失宠物近照 URL 列表（至少 1 张）","example":["http://127.0.0.1:9200/uploads/lost-alerts/demo.jpg"],"type":"array","items":{"type":"string"}},"lastSeenAt":{"type":"string","description":"最后目击走失时间（ISO 8601 字符串）","example":"2026-11-26T18:30:00+08:00"},"lastSeenLng":{"type":"number","description":"走失点位 GCJ-02 经度","example":116.473168},"lastSeenLat":{"type":"number","description":"走失点位 GCJ-02 纬度","example":39.993015},"lastSeenAddress":{"type":"string","description":"走失地点详细地址","example":"北京市朝阳区望京公园南门草坪"},"contactName":{"type":"string","description":"紧急联系人称呼","example":"林女士"},"contactPhone":{"type":"string","description":"紧急联系电话","example":"13800138000"},"rewardNote":{"type":"string","description":"酬谢或补充说明","example":"提供有效线索找到重谢 1000 元"}},"required":["species","petName","breed","gender","colorFeature","images","lastSeenAt","lastSeenLng","lastSeenLat","lastSeenAddress","contactName","contactPhone"]},"SubmitLostClueDto":{"type":"object","properties":{"sightingAt":{"type":"string","description":"目击发生时间（ISO 8601 字符串）","example":"2026-11-26T19:15:00+08:00"},"sightingLng":{"type":"number","description":"目击点位 GCJ-02 经度","example":116.47652},"sightingLat":{"type":"number","description":"目击点位 GCJ-02 纬度","example":39.99481},"sightingAddress":{"type":"string","description":"目击地点文字描述","example":"望京西路与阜通东大街交叉口绿化带"},"images":{"description":"现场目击照片 URL 列表","example":[],"type":"array","items":{"type":"string"}},"description":{"type":"string","description":"目击经过及去向补充描述","example":"看到往南边小区门口跑去，脖子有橙色项圈"}},"required":["sightingAt","sightingLng","sightingLat","sightingAddress","images","description"]},"CreateHealthRecordDto":{"type":"object","properties":{"petId":{"type":"number","description":"所属宠物档案 ID","example":1},"recordType":{"type":"string","description":"健康记录类型","enum":["weight","vaccine","dewormIn","dewormOut","poop","medical"],"example":"weight"},"recordedAt":{"type":"string","description":"记录发生时间（ISO 8601 或 YYYY-MM-DD HH:mm）","example":"2026-11-26T09:30:00+08:00"},"weightKg":{"type":"object","description":"体重数值（单位：kg，体重类型时传入）","nullable":true,"example":11.4},"poopStatus":{"type":"string","description":"排便状态（recordType=poop 时传入）","enum":["normal","soft","diarrhea","constipation"],"nullable":true,"example":"normal"},"title":{"type":"string","description":"记录标题摘要","example":"本月称重记录"},"nextDueDate":{"type":"object","description":"下次到期提醒日期（YYYY-MM-DD）","nullable":true,"example":"2026-12-26"},"images":{"description":"单据或症状图片 URL 列表","example":[],"type":"array","items":{"type":"string"}},"remark":{"type":"string","description":"补充医疗或饮食备注","example":"精神状态良好"}},"required":["petId","recordType","recordedAt","title"]},"CreateCarePlanDto":{"type":"object","properties":{"petId":{"type":"number","description":"所属宠物档案 ID","example":1},"category":{"type":"string","description":"护理科目分类（含猫咪 litter 铲砂清洁）","enum":["walk","feed","litter","medicine","grooming","deworm","vaccine","training"],"example":"walk"},"title":{"type":"string","description":"日程计划标题","example":"晚间出门遛弯 30 分钟"},"cycleType":{"type":"string","description":"循环周期类型","enum":["once","daily","weekly","monthly","intervalDays"],"example":"daily"},"cycleConfig":{"type":"object","description":"周期详细规则（weekly 传 weekdays，monthly 传 monthDays，intervalDays 传 intervalDays）","example":{"weekdays":[1,3,5]}},"startDate":{"type":"string","description":"计划起始生效日期（YYYY-MM-DD）","example":"2026-11-26"},"remindTime":{"type":"object","description":"每日提醒时刻（HH:mm）","nullable":true,"example":"19:30"}},"required":["petId","category","title","cycleType","startDate"]},"TogglePlanDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"是否启用（true=启用，false=暂停）","example":true}},"required":["isActive"]},"CheckinPlanDto":{"type":"object","properties":{"scheduledDate":{"type":"string","description":"目标打卡东八区日历日（YYYY-MM-DD，默认当天）","example":"2026-11-26"},"trainingNote":{"type":"string","description":"训练心得或打卡备注","example":"今天召回训练配合度很高"}}},"CreateMapPoiDto":{"type":"object","properties":{"poiCategory":{"type":"string","description":"点位大类（hazard=避雷预警，friendlyPlace=友好场所，facility=便民设施）","enum":["hazard","friendlyPlace","facility"],"example":"hazard"},"subType":{"type":"string","description":"点位细分类型","enum":["poison","dogCatch","strayDog","sharpObject","lawn","mall","restaurant","swim","poopBag","water","toilet"],"example":"sharpObject"},"title":{"type":"string","description":"点位标题","example":"草坪西侧有碎玻璃碎片"},"description":{"type":"string","description":"详细情况与避坑说明","example":"靠近健身器材旁，建议绕行避开"},"lng":{"type":"number","description":"点位目标 GCJ-02 经度","example":116.4732},"lat":{"type":"number","description":"点位目标 GCJ-02 纬度","example":39.9931},"reporterLng":{"type":"number","description":"上报人当前位置 GCJ-02 经度（用于 5km 真实围栏校验）","example":116.4731},"reporterLat":{"type":"number","description":"上报人当前位置 GCJ-02 纬度（用于 5km 真实围栏校验）","example":39.993},"address":{"type":"string","description":"点位所在详细地址","example":"北京市朝阳区望京公园西门步道"},"cityAdcode":{"type":"string","description":"6 位城市/区县行政区划码（adcode）","example":"110105"},"accessTags":{"type":"array","description":"友好场所准入标签列表","example":["needLeash","waterProvided"],"items":{"type":"string","enum":["needLeash","needStroller","smallMediumOnly","noFierceDog","freeRun","waterProvided"]}},"images":{"description":"现场实拍图片 URL 列表（避雷点位强校验至少 1 张）","example":["http://127.0.0.1:9200/uploads/map-pois/demo.jpg"],"type":"array","items":{"type":"string"}}},"required":["poiCategory","subType","title","description","lng","lat","reporterLng","reporterLat","address","images"]},"VoteMapPoiDto":{"type":"object","properties":{"voteType":{"type":"string","description":"众包投票类型（confirm=确认仍有效，resolve=标记已清理/解除）","enum":["confirm","resolve"],"example":"confirm"},"voterLng":{"type":"number","description":"投票人当前位置 GCJ-02 经度","example":116.4732},"voterLat":{"type":"number","description":"投票人当前位置 GCJ-02 纬度","example":39.9931}},"required":["voteType","voterLng","voterLat"]},"CreateMapUserPinDto":{"type":"object","properties":{"sourceKind":{"type":"string","description":"收藏来源类型（place=高德地点，poi=社区点位，custom=自定义落钉）","enum":["place","poi","custom"],"example":"place"},"amapPoiId":{"type":"string","description":"关联高德公开地点 ID（最长 64 字符）","maxLength":64,"example":"B000A83C6P"},"poiId":{"type":"number","description":"关联平台社区共建 POI 主键 ID","example":12},"title":{"type":"string","description":"个人标记名称（最长 64 字符）","maxLength":64,"example":"常去遛弯草坪集合点"},"remark":{"type":"string","description":"个人备忘说明（最长 255 字符）","maxLength":255,"example":"晚上 8 点有柯基群友一起玩"},"address":{"type":"string","description":"地点详细地址（最长 255 字符）","maxLength":255,"example":"朝阳公园南门草坪"},"lng":{"type":"number","description":"标记 GCJ-02 经度","example":116.482276},"lat":{"type":"number","description":"标记 GCJ-02 纬度","example":39.944093}},"required":["title","address","lng","lat"]},"UpdateMapUserPinDto":{"type":"object","properties":{"title":{"type":"string","description":"个人收藏名称（最长 64 字符）","maxLength":64,"example":"东门免费饮水点"},"remark":{"type":"string","description":"个人备忘说明（最长 255 字符）","maxLength":255,"example":"晚八点人少树荫多"}}},"CreatePostDto":{"type":"object","properties":{"petIds":{"description":"关联出镜宠物 ID 列表","example":[1],"type":"array","items":{"type":"number"}},"content":{"type":"string","description":"动态正文内容（触发微信文本安全检测）","example":"今天带团子在望京公园认识了三只小柯基！"},"images":{"description":"配图 URL 列表","example":["http://127.0.0.1:9200/uploads/social-posts/demo.jpg"],"type":"array","items":{"type":"string"}},"lng":{"type":"number","description":"发帖位置 GCJ-02 经度","example":116.4732},"lat":{"type":"number","description":"发帖位置 GCJ-02 纬度","example":39.9931},"placeName":{"type":"string","description":"定位地点展示名称","example":"望京公园"}},"required":["content"]},"CreateCommentDto":{"type":"object","properties":{"content":{"type":"string","description":"评论正文内容","example":"太可爱啦，周末一起约遛！"}},"required":["content"]},"CreateReportDto":{"type":"object","properties":{"targetType":{"type":"string","description":"被举报对象类型","enum":["poi","post","comment","user","lostAlert"],"example":"post"},"targetId":{"type":"number","description":"被举报目标主键 ID","example":10},"reasonCategory":{"type":"string","description":"举报违规分类标签","example":"虚假信息"},"description":{"type":"string","description":"详细补充说明","example":"该点位广告引流且信息不实"},"evidenceImages":{"description":"举证截图 URL 列表","example":[],"type":"array","items":{"type":"string"}}},"required":["targetType","targetId","reasonCategory"]},"SubmitSitterApplyDto":{"type":"object","properties":{"realName":{"type":"string","description":"申请人真实姓名","example":"陈晓"},"idCardNo":{"type":"string","description":"18 位身份证号（服务端 AES 加密存储，列表仅脱敏回显）","example":"110101199506151234"},"phone":{"type":"string","description":"联系手机号","example":"13900139000"},"cityAdcode":{"type":"string","description":"服务城市 6 位行政区划码（adcode）","example":"110105"},"serviceDistricts":{"type":"string","description":"常驻服务商圈范围","example":"望京、酒仙桥、太阳宫"},"serviceScope":{"type":"string","description":"可提供服务项目说明","example":"代遛中小型犬、上门喂猫铲砂"},"experienceYears":{"type":"number","description":"养宠或宠物照护经验年数（非负整数）","minimum":0,"example":3},"hasOwnPet":{"type":"boolean","description":"当前家中是否养宠","example":true},"availableSlots":{"type":"string","description":"平时可接单时间段","example":"工作日早晚及周末全天"}},"required":["realName","idCardNo","phone","cityAdcode","serviceDistricts","serviceScope","experienceYears","hasOwnPet","availableSlots"]},"SubmitMerchantLeadDto":{"type":"object","properties":{"targetPoiId":{"type":"object","description":"认领关联的已有地图 POI ID（新入驻可为空）","nullable":true,"example":12},"shopName":{"type":"string","description":"门店招牌名称","example":"爪印森林宠物友好咖啡馆"},"businessType":{"type":"string","description":"门店经营业态分类","example":"宠物友好餐饮"},"contactName":{"type":"string","description":"门店联系人称呼","example":"周店长"},"contactPhone":{"type":"string","description":"门店联系电话","example":"13700137000"},"licenseImg":{"type":"string","description":"营业执照图片 URL","example":"http://127.0.0.1:9200/uploads/merchants/license.jpg"},"shopPhotos":{"description":"门店实景照片 URL 列表","example":[],"type":"array","items":{"type":"string"}},"address":{"type":"string","description":"门店所在详细地址","example":"北京市朝阳区望京 SOHO T2 一层 108"},"lng":{"type":"number","description":"门店 GCJ-02 经度","example":116.4809},"lat":{"type":"number","description":"门店 GCJ-02 纬度","example":39.9965}},"required":["shopName","businessType","contactName","contactPhone","address","lng","lat"]},"AdminLoginDto":{"type":"object","properties":{"username":{"type":"string","description":"管理员登录用户名","example":"admin"},"password":{"type":"string","description":"管理员登录密码","example":"PetCircle@2026"}},"required":["username","password"]},"SeedCityPoisDto":{"type":"object","properties":{"cityName":{"type":"string","description":"目标城市名称","example":"北京市"},"cityAdcode":{"type":"string","description":"目标城市 6 位行政区划码（adcode）","example":"110105"}},"required":["cityName","cityAdcode"]},"UpdatePoiStatusDto":{"type":"object","properties":{"status":{"type":"string","description":"目标点位状态","enum":["active","resolved","expired","pendingAudit","removed"],"example":"active"}},"required":["status"]},"UpdateLostStatusDto":{"type":"object","properties":{"status":{"type":"string","description":"寻宠广播状态","enum":["searching","found","closed","removed"],"example":"closed"}},"required":["status"]},"AuditLicenseDto":{"type":"object","properties":{"decision":{"type":"string","description":"审核结论（verified=通过，rejected=驳回）","enum":["verified","rejected"],"example":"verified"},"auditRemark":{"type":"string","description":"审核意见或驳回原因说明","example":"犬证编号与实拍照片核验一致"}},"required":["decision","auditRemark"]},"HandleReportDto":{"type":"object","properties":{"action":{"type":"string","description":"处置动作（resolved=确认违规并联动下架，rejected=驳回举报）","enum":["resolved","rejected"],"example":"resolved"},"remark":{"type":"string","description":"工单处置备注","example":"已核实并下架涉事内容"}},"required":["action","remark"]},"AuditLeadDto":{"type":"object","properties":{"auditStatus":{"type":"string","description":"线索审核状态","enum":["pending","approved","rejected"],"example":"approved"},"adminRemark":{"type":"string","description":"审核跟进备注","example":"已电话核实门店营业执照信息"}},"required":["auditStatus","adminRemark"]},"ApiErrorResponse":{"type":"object","description":"全局统一错误响应结构（严格保留真实 HTTP 400/401/403/404/500 状态码）","properties":{"code":{"type":"number","example":0,"description":"业务错误码（HTTP 401/403 时与状态码一致，其余异常为 0）"},"message":{"type":"string","example":"请求参数校验失败","description":"简洁中文错误提示"},"data":{"nullable":true,"example":null,"description":"异常响应固定为 null"}},"required":["code","message","data"]},"ApiGenericSuccessResponse":{"type":"object","description":"统一标准成功响应信封","properties":{"code":{"type":"number","example":200,"description":"业务状态码（200 表示成功）"},"message":{"type":"string","example":"操作成功","description":"业务提示信息"},"data":{"nullable":true,"description":"业务返回载荷"}},"required":["code","message","data"]}}}}