MSP-8974 update doc
This commit is contained in:
1 parent
3e707244dd
commit
2f29af5e76
11 files changed
+395
-194
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user