Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICRUDRepository ¶
type ICRUDRepository interface { // Get GetOneById(id string) (*entities.DataResponse, error) // List GetList(pageNumber int, pageSize int, filter map[string]interface{}) (*entities.DataListResponse, error) // Create Create(entityModel *entities.ICRUDDataModel) (*entities.DataResponse, error) // Update Update(entityModel *entities.ICRUDDataModel) (*entities.DataResponse, error) // UpSert UpSert(filter map[string]interface{}, entityModel entities.ICRUDDataModel) (interface{}, error) // Delete Delete(entityModel *entities.ICRUDDataModel) error // Describe DescribeDataSource(schema string) map[string]interface{} }
type IUserRepository ¶
type IUserRepository interface { GetUserByEmail(email string) (*entitymodels.UserModel, error) GetUserByUserId(userId uint) (*entitymodels.UserModel, error) InsertUser(userRegisterRequest *entityuser.UserRegisterRequest) (*entityuser.UserEntity, error) InsertOAuth(userLoginReponse *entityuser.UserLoginResponse) error UpsertOAuth(userLoginReponse *entityuser.UserLoginResponse) error FindOneOAuthByUserId(userId uint) (*entitymodels.UserTokenModel, error) FindOAuthByUserIdAndAccessToken(userId uint, accessToken string) (*entitymodels.UserTokenModel, error) DeleteOAuthByUserId(userId uint) error GetUserPermissionByUserId(userId uint) (*entitymodels.UserPermissionModel, error) }
Click to show internal directories.
Click to hide internal directories.