MSP-8974 update doc

This commit is contained in:
chashintv committed 2026-11-19 20:31:51 +03:00
1 parent 7a36a09fa8
commit 73ac1f2fbe
11 files changed
+395 -194

No files matched your search

+4 -4
View File
@@ -33,7 +33,7 @@ func NewDownload(service DownloadService) Download {
// @Produce json
// @Param body body domain.UsersDownloadRequest true "Тело запроса"
// @Success 200
// @Failure 500 {object} domain.BusinessError "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Failure 500 {object} apierrors.Error "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Router /user/download [POST]
func (c Download) Users(ctx context.Context, req domain.UsersDownloadRequest, w http.ResponseWriter) error {
err := c.service.DownloadUsers(ctx, req, w)
@@ -51,7 +51,7 @@ func (c Download) Users(ctx context.Context, req domain.UsersDownloadRequest, w
// @Produce json
// @Param body body domain.SessionDownloadRequest true "Тело запроса"
// @Success 200
// @Failure 500 {object} domain.BusinessError "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Failure 500 {object} apierrors.Error "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Router /session/download [POST]
func (c Download) Sessions(ctx context.Context, req domain.SessionDownloadRequest, w http.ResponseWriter) error {
err := c.service.DownloadSessions(ctx, req, w)
@@ -69,7 +69,7 @@ func (c Download) Sessions(ctx context.Context, req domain.SessionDownloadReques
// @Produce json
// @Param body body domain.AuditDownloadRequest true "Тело запроса"
// @Success 200
// @Failure 500 {object} domain.BusinessError "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Failure 500 {object} apierrors.Error "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Router /log/download [POST]
func (c Download) Audit(ctx context.Context, req domain.AuditDownloadRequest, w http.ResponseWriter) error {
err := c.service.DownloadAudit(ctx, req, w)
@@ -86,7 +86,7 @@ func (c Download) Audit(ctx context.Context, req domain.AuditDownloadRequest, w
// @Accept json
// @Produce json
// @Success 200
// @Failure 500 {object} domain.BusinessError "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Failure 500 {object} apierrors.Error "Внутренняя ошибка сервиса ```{errorCode: -1}```"
// @Router /role/download [POST]
func (c Download) Roles(ctx context.Context, w http.ResponseWriter) error {
err := c.service.DownloadRoles(ctx, w)