port

package
v0.0.0-...-911e263 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtRepository

type JwtRepository interface {
	GetToken(c *gin.Context) (string, error)
	GetTargetUser(c *gin.Context) (*entity.Auth, error)
	GenerateTokenProc(userID string) (*entity.Auth, string, error)
	ParseProc(signedString string) (*entity.Auth, error)
}

type LoggerPort

type LoggerPort interface {
	PrintInfo(num string, group string, message string)
	PrintError(num string, group string, message string)
	PrintDebug(group string, num string, message string)
}

type UserAuthPort

type UserAuthPort interface {
	FindAccessToken(accessToken string) (*entity.UserAuth, error)
	DeleteAccessToken(userID uint, accessToken string) (*entity.UserAuth, error)
	InsertAccessToken(userID uint, accessToken string) (*entity.UserAuth, error)
	DeleteInsertAccessToken(userID uint, deleteAccessToken string, insertAccessToken string) (*entity.UserAuth, error)
}

type UserPort

type UserPort interface {
	GetUserList() (*[]entity.User, error)
	FindUserId(userId uint) (*entity.User, error)
	LoginUserNamePassword(userName string, password string) (*entity.User, error)
	FindUserName(userName string) (*entity.User, error)
	InsertUser(userName string, lastName string, firstName string, employeeNumber string, password string, roleBitCode uint64) (*entity.User, error)
	UpdateUse(userId uint, userName *string, lastName *string, firstName *string, employeeNumber *string, password *string, roleBitCode uint64) (*entity.User, error)
	DeleteUser(userName string) (*entity.User, error)
}

type UserRolePort

type UserRolePort interface {
	FindId(id uint) (*entity.UserRole, error)
	FindList() (*[]entity.UserRole, error)
}

Jump to

Keyboard shortcuts

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