Documentation
¶
Overview ¶
Auto Create By Moduler User 模組的 Repository implement
Index ¶
- func NewUserRepository(orm *gorm.DB) user.Repository
- type UserRepository
- func (g *UserRepository) CreateUser(data model.UserInterface) (*model.User, error)
- func (g *UserRepository) DeleteUser(data model.UserInterface) error
- func (g *UserRepository) GetUser(data model.UserInterface) (*model.User, error)
- func (g *UserRepository) GetUserList(data map[string]interface{}) ([]*model.User, error)
- func (g *UserRepository) ModifyUser(data model.UserInterface, column map[string]interface{}) (*model.User, error)
- func (g *UserRepository) UpdateUser(data model.UserInterface) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
Repository 實例
func (*UserRepository) CreateUser ¶
func (g *UserRepository) CreateUser(data model.UserInterface) (*model.User, error)
此為自動產生,建議不要進行更動
func (*UserRepository) DeleteUser ¶
func (g *UserRepository) DeleteUser(data model.UserInterface) error
此為自動產生,建議不要進行更動
func (*UserRepository) GetUser ¶
func (g *UserRepository) GetUser(data model.UserInterface) (*model.User, error)
以下實作 Repository 方法
此為自動產生,建議不要進行更動
func (*UserRepository) GetUserList ¶
func (g *UserRepository) GetUserList(data map[string]interface{}) ([]*model.User, error)
此為自動產生,建議不要進行更動
func (*UserRepository) ModifyUser ¶
func (g *UserRepository) ModifyUser(data model.UserInterface, column map[string]interface{}) (*model.User, error)
此為自動產生,建議不要進行更動
func (*UserRepository) UpdateUser ¶
func (g *UserRepository) UpdateUser(data model.UserInterface) (*model.User, error)
此為自動產生,建議不要進行更動
Click to show internal directories.
Click to hide internal directories.