feat: dbcontext abstraction via dependency

This commit is contained in:
2025-06-21 02:27:23 +03:00
parent 03c072e67b
commit 0c4d618fa4
7 changed files with 112 additions and 4 deletions

View File

@@ -124,6 +124,17 @@
"Auth"
],
"summary": "Register an account",
"parameters": [
{
"description": "desc",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.RegistrationBeginRequest"
}
}
],
"responses": {}
}
},
@@ -306,6 +317,21 @@
"type": "string"
}
}
},
"models.RegistrationBeginRequest": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"description": "TODO: password checking",
"type": "string"
},
"username": {
"type": "string"
}
}
}
},
"securityDefinitions": {