Documentation ¶
Index ¶
- type DAO
- type JdbcImpl
- func (impl *JdbcImpl) CreateUser(ctx context.Context, user *User) *gorm.DB
- func (impl *JdbcImpl) DeleteUser(ctx context.Context, id uint) *gorm.DB
- func (impl *JdbcImpl) GetAllUsers(ctx context.Context) (users []*User, err error)
- func (impl *JdbcImpl) GetUserById(ctx context.Context, id uint) (*User, error)
- func (impl *JdbcImpl) UpdateUser(ctx context.Context, user *User) *gorm.DB
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JdbcImpl ¶
type JdbcImpl struct {
// contains filtered or unexported fields
}
func NewJdbcImpl ¶
func (*JdbcImpl) CreateUser ¶
func (*JdbcImpl) DeleteUser ¶
func (*JdbcImpl) GetAllUsers ¶
GetAllUsers get all users from database. When the amount of data is large, this function may cause library dragging.
func (*JdbcImpl) GetUserById ¶
Click to show internal directories.
Click to hide internal directories.