Documentation ¶
Index ¶
- type ContentTypeService
- type DefaultContentTypeService
- func (s DefaultContentTypeService) AddCol(userId int, contentTypeId, col string) error
- func (s DefaultContentTypeService) CreateContentType(userId int, name, cols string) (string, error)
- func (s DefaultContentTypeService) DeleteCol(userId int, contentTypeId, col string) error
- func (s DefaultContentTypeService) DeleteContentType(userId int, contentTypeId string) error
- func (s DefaultContentTypeService) UpdateColName(userId int, contentTypeId, oldName, newName string) error
- type DefaultRoleService
- type DefaultUserService
- func (s DefaultUserService) InsertOTP(user *user.User) error
- func (s DefaultUserService) Login(user user.User) (string, error)
- func (s DefaultUserService) ReadOTP(user *user.User) (string, error)
- func (s DefaultUserService) Signup(user user.User) (int, error)
- func (s DefaultUserService) VerifyEmail(user *user.User) error
- type RoleService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentTypeService ¶
type DefaultContentTypeService ¶
type DefaultContentTypeService struct {
// contains filtered or unexported fields
}
func NewContentTypeService ¶
func NewContentTypeService(repository contentType.ContentTypeRepository) DefaultContentTypeService
func (DefaultContentTypeService) AddCol ¶
func (s DefaultContentTypeService) AddCol(userId int, contentTypeId, col string) error
func (DefaultContentTypeService) CreateContentType ¶
func (s DefaultContentTypeService) CreateContentType(userId int, name, cols string) (string, error)
func (DefaultContentTypeService) DeleteCol ¶
func (s DefaultContentTypeService) DeleteCol(userId int, contentTypeId, col string) error
func (DefaultContentTypeService) DeleteContentType ¶
func (s DefaultContentTypeService) DeleteContentType(userId int, contentTypeId string) error
func (DefaultContentTypeService) UpdateColName ¶
func (s DefaultContentTypeService) UpdateColName(userId int, contentTypeId, oldName, newName string) error
type DefaultRoleService ¶
type DefaultRoleService struct {
// contains filtered or unexported fields
}
func NewRoleService ¶
func NewRoleService(repository role.RoleRepository) DefaultRoleService
func (DefaultRoleService) Create ¶
func (s DefaultRoleService) Create(newRole role.Role) (int, error)
func (DefaultRoleService) Delete ¶
func (s DefaultRoleService) Delete(roleId int) error
type DefaultUserService ¶
type DefaultUserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repository user.UserRepository) DefaultUserService
func (DefaultUserService) ReadOTP ¶
func (s DefaultUserService) ReadOTP(user *user.User) (string, error)
func (DefaultUserService) VerifyEmail ¶
func (s DefaultUserService) VerifyEmail(user *user.User) error
type RoleService ¶
type UserService ¶
type UserService interface { Login(user.User) (string, error) Signup(user.User) (int, error) // InsertOTP saves otp into database InsertOTP(*user.User) error // VerifyEmail sets email_verified column to true VerifyEmail(*user.User) error // ReadOTP gets otp from database ReadOTP(*user.User) (string, error) }
Click to show internal directories.
Click to hide internal directories.