Documentation ¶
Index ¶
- func Get_db() *gorm.DB
- func Update_db()
- type ExampleService
- func (exampleService *ExampleService) CreateExample(data map[string]interface{}) *models.Example
- func (exampleService *ExampleService) DeleteExample(exampleId int) bool
- func (exampleService *ExampleService) GetExample(exampleId int) *models.Example
- func (exampleService *ExampleService) UpdateExample(data map[string]interface{}) bool
- type UserService
- func (userService *UserService) CreateUser(username string, password string, email string) (models.User, error)
- func (UserService *UserService) DeleteUser(UserId int) bool
- func (UserService *UserService) GetUser(UserId int) *models.User
- func (userService *UserService) LoginByUsernamePassword(username string, password string, email string) (string, error)
- func (UserService *UserService) UpdateUser(data map[string]interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) DeleteUser ¶
func (UserService *UserService) DeleteUser(UserId int) bool
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
Click to show internal directories.
Click to hide internal directories.