services

package
v0.0.0-...-22b531f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get_db

func Get_db() *gorm.DB

func Update_db

func Update_db()

Types

type ExampleService

type ExampleService struct{}

func (*ExampleService) CreateExample

func (exampleService *ExampleService) CreateExample(data map[string]interface{}) *models.Example

func (*ExampleService) DeleteExample

func (exampleService *ExampleService) DeleteExample(exampleId int) bool

func (*ExampleService) GetExample

func (exampleService *ExampleService) GetExample(exampleId int) *models.Example

func (*ExampleService) UpdateExample

func (exampleService *ExampleService) UpdateExample(data map[string]interface{}) bool

type UserService

type UserService struct{}

func (*UserService) CreateUser

func (userService *UserService) CreateUser(username string, password string, email string) (models.User, error)

func (*UserService) DeleteUser

func (UserService *UserService) DeleteUser(UserId int) bool

func (*UserService) GetUser

func (UserService *UserService) GetUser(UserId int) *models.User

func (*UserService) LoginByUsernamePassword

func (userService *UserService) LoginByUsernamePassword(username string, password string, email string) (string, error)

@name LoginByUsernamePassword @description LoginByUsernamePassword @return string

func (*UserService) UpdateUser

func (UserService *UserService) UpdateUser(data map[string]interface{}) bool

Jump to

Keyboard shortcuts

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