POST /profiles/{user_id}/versions

为指定用户手动创建资料版本快照,保存当前资料状态到版本历史

用户资料 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
user_id path string 是 用户ID

响应

状态描述Schema
201版本快照创建成功service-profile/internal/handler/dto.VersionDetailResponse
400请求参数错误dto.SimpleResponse
401未授权dto.SimpleResponse
404资料不存在dto.SimpleResponse
500服务内部错误dto.SimpleResponse

引用的 Schema

dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-profile/internal/handler/dto.VersionDetailResponse

字段类型必填示例约束描述
code integer 否
data service-profile/internal/handler/dto.VersionResponse 否
message string 否
timestamp string 否

service-profile/internal/handler/dto.VersionResponse

字段类型必填示例约束描述
change_type string 否
changed_at string 否
changed_by string 否
id string 否
snapshot object 否
version integer 否