controllers

package
v0.0.0-...-a79f028 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityController

type ActivityController struct {
	// contains filtered or unexported fields
}

func (*ActivityController) ActivityHeartbeat

func (h *ActivityController) ActivityHeartbeat(c echo.Context) error

heartBeat godoc @Summary update user Activiy @Description update user Activiy @Tags activity @Param platform query string false "Platform of the activity (e.g., web, app)" @Param page query string false "Page name or section the user is interacting with" @Param id query string false "page Id like chatId or chat group" @Router /api/v1/activity/heartbeat [get] @Security BearerAuth

func (*ActivityController) Activitytest

func (h *ActivityController) Activitytest(c echo.Context) error

activitytest godoc @Summary update user Activiy @Description update user Activiy @Tags activity @Param platform query string false "Platform of the activity (e.g., web, app)" @Router /api/v1/activity/test [get] @Security BearerAuth

type AuthController

type AuthController struct {
	// contains filtered or unexported fields
}

func (*AuthController) GetConfig

func (h *AuthController) GetConfig(c echo.Context) error

GetConfig godoc @Summary Get Config @Description Retrieve configuration based on the provided name parameter. @Tags config @Produce json @Param name query string true "name" @Router /auth/config [get] @Security BearerAuth

func (*AuthController) Login

func (h *AuthController) Login(c echo.Context) error

Login godoc @Summary Login user @Description Login user @Tags auth @Accept json @Produce json @Param user body models.LoginUserRequest true "Register User" @Router /auth/login [post]

func (*AuthController) NewAuthConfig

func (h *AuthController) NewAuthConfig(c echo.Context) error

NewConfig godoc @Summary Create new Config @Description Create new Config @Tags config @Accept json @Produce json @Param user body models.ConfigurationRequest true "New Config" @Router /auth/config [post]

func (*AuthController) Register

func (h *AuthController) Register(c echo.Context) error

Register godoc @Summary Register a new user @Description Register a new user with the given details @Tags auth @Accept json @Produce json @Param user body models.RegisterUserRequest true "Register User" @Router /auth/register [post]

func (*AuthController) UpdateToken

func (h *AuthController) UpdateToken(c echo.Context) error

type ConfigurationController

type ConfigurationController struct {
	// contains filtered or unexported fields
}

func (*ConfigurationController) GetConfig

func (h *ConfigurationController) GetConfig(c echo.Context) error

GetConfig godoc @Summary Get Config @Description Retrieve configuration based on the provided name parameter. @Tags config @Produce json @Param name query string true "name" @Router /api/v1/config [get] @Security BearerAuth

func (*ConfigurationController) NewConfig

func (h *ConfigurationController) NewConfig(c echo.Context) error

NewConfig godoc @Summary Create new Config @Description Create new Config @Tags config @Accept json @Produce json @Param user body models.ConfigurationRequest true "New Config" @Router /api/v1/config [post] @Security BearerAuth

type OrganizationController

type OrganizationController struct {
	// contains filtered or unexported fields
}

func (*OrganizationController) AddUserToOrganizationSuperAdmin

func (h *OrganizationController) AddUserToOrganizationSuperAdmin(c echo.Context) error

AddOrganization godoc @Summary AddOrganization @Description AddOrganization @Tags organization @Accept json @Produce json @Param id path string true "usercombination" @Router /api/v1/organization/user/add/{id} [get] @Security BearerAuth

func (*OrganizationController) ChageRoleUserOrganizationSuperAdmin

func (h *OrganizationController) ChageRoleUserOrganizationSuperAdmin(c echo.Context) error

changeUserRoleOrganizaion godoc @Summary changeUserRoleOrganizaion @Description changeUserRoleOrganizaion @Tags organization @Accept json @Produce json @Param id path string true "name role" @Router /api/v1/organization/user/change/role/{id} [put] @Param user body models.ChangeUserRoleOrganizationDto true "New Config" @Security BearerAuth

func (*OrganizationController) CreateOrganization

func (h *OrganizationController) CreateOrganization(c echo.Context) error

Postorganization godoc @Summary Create organization @Description Crete organization @Tags organization @Accept json @Produce json @Router /api/v1/organization [post] @Param user body models.CreateNewOrganization true "Create organization" @Security BearerAuth

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func (*UserController) ChangeOrganization

func (h *UserController) ChangeOrganization(c echo.Context) error

ChangeOrganizaiton godoc @Summary ChangeOrganizaiton @Description Retrieve a user @Tags user @Accept json @Produce json @Param id path string true "Organization ID (UUID)" @Router /api/v1/user/change/organization/{id} [get] @Security BearerAuth

func (*UserController) GetAllUser

func (h *UserController) GetAllUser(c echo.Context) error

GetAllUser godoc @Summary GetUser @Description GetUser @Tags user @Accept json @Produce json @Router /api/v1/user/all [get] @Security BearerAuth

func (*UserController) GetUser

func (h *UserController) GetUser(c echo.Context) error

GetUser godoc @Summary Get user @Description Retrieve a user @Tags user @Accept json @Produce json @Router /api/v1/user [get] @Security BearerAuth

func (*UserController) GetUserAdminAll

func (h *UserController) GetUserAdminAll(c echo.Context) error

GetAllUser godoc @Summary GetAllUser @Description GetAllUser @Tags user @Accept json @Produce json @Param limit query integer true "limit" @Param page query integer true "page" @Param limit query string true "name" @Param page query string true "role" @Param search query string false "email" @Router /api/v1/user/admin/all [get] @Security BearerAuth

func (*UserController) GetUserAdminAllByOrganizationId

func (h *UserController) GetUserAdminAllByOrganizationId(c echo.Context) error

GetAllUserByOrganization godoc @Summary GetAllUserByOrganization @Description GetAllUserByOrganization @Tags user @Accept json @Produce json @Param id path string true "Organzationid" @Param limit query integer true "limit" @Param page query integer true "page" @Router /api/v1/user/admin/organization/all/{id} [get] @Security BearerAuth

func (*UserController) GetUserAllByOrganizationId

func (h *UserController) GetUserAllByOrganizationId(c echo.Context) error

GetUserAllByOrganizationId godoc @Summary GetUserAllByOrganizationId @Description GetUserAllByOrganizationId @Tags user @Accept json @Produce json @Param id path string true "Organzationid" @Param limit query integer true "limit" @Param page query integer true "page" @Router /api/v1/user/organization/all/{id} [get] @Security BearerAuth

func (*UserController) GetUserByID

func (h *UserController) GetUserByID(c echo.Context) error

GetUserByID godoc @Summary Get user by ID @Description Retrieve a user by their UUID @Tags user @Accept json @Produce json @Param id path string true "User ID (UUID)" @Router /api/v1/user/{id} [get] @Security BearerAuth

func (*UserController) UpdateUserAdmin

func (h *UserController) UpdateUserAdmin(c echo.Context) error

Updatepatch godoc @Summary Updatepatch @Description Updatepatch @Tags user @Accept json @Produce json @Param id path string true "userId (UUID)" @Param user body models.UpdateUserRequest true "New Config" @Router /api/v1/user/admin/{id} [patch] @Security BearerAuth

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL