Documentation ¶
Index ¶
- func GormAutoMigrate(db gorm.DB) error
- func Init()
- type DBMS
- func (d *DBMS) CodingNameExist(ctx context.Context, input string) error
- func (d *DBMS) DeleteCoding(ctx context.Context, CodingID uint) error
- func (d *DBMS) DeleteMenu(ctx context.Context, MenuID uint) error
- func (d *DBMS) DeleteUser(ctx context.Context, UserID uint) error
- func (d *DBMS) EditCoding(ctx context.Context, newCoding entitycoding.Coding) (entitycoding.Coding, error)
- func (d *DBMS) EditMenu(ctx context.Context, newMenu entitymenu.Menu) (entitymenu.Menu, error)
- func (d *DBMS) EditUser(ctx context.Context, newUser entityUser.User) (entityUser.User, error)
- func (d *DBMS) FindCoding(ctx context.Context, CodingID uint) (entitycoding.Coding, error)
- func (d *DBMS) FindCodingByCodingName(ctx context.Context, CodingName string) (entitycoding.Coding, error)
- func (d *DBMS) FindMenu(ctx context.Context, MenuID uint) (entitymenu.Menu, error)
- func (d *DBMS) FindMenuByMenuName(ctx context.Context, MenuName string) (entitymenu.Menu, error)
- func (d *DBMS) FindUser(ctx context.Context, UserID uint) (entityUser.User, error)
- func (d *DBMS) FindUserByUserName(ctx context.Context, Username string) (entityUser.User, error)
- func (d *DBMS) GetChildrenCodings(ctx context.Context, inputParent int) ([]entitycoding.Coding, error)
- func (d *DBMS) GetCodings(ctx context.Context, inputLevel int) ([]entitycoding.Coding, error)
- func (d *DBMS) GetMenus(ctx context.Context) ([]entitymenu.Menu, error)
- func (d *DBMS) GetUsers(ctx context.Context) ([]entityUser.User, error)
- func (d *DBMS) IsCodingExist(ctx context.Context, codingID uint) (bool, error)
- func (d *DBMS) IsMenuExist(ctx context.Context, menuID uint) (bool, error)
- func (d *DBMS) IsUserExist(ctx context.Context, userID uint) (bool, error)
- func (d *DBMS) MenuNameExist(ctx context.Context, input string) error
- func (d *DBMS) NewCoding(ctx context.Context, inputCoding entitycoding.Coding) error
- func (d *DBMS) NewMenu(ctx context.Context, inputMenu entitymenu.Menu) error
- func (d *DBMS) NewUser(ctx context.Context, inputUser entityUser.User) error
- func (d *DBMS) UsernameExist(ctx context.Context, input string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormAutoMigrate ¶
Types ¶
type DBMS ¶
type DBMS struct {
// contains filtered or unexported fields
}
var DB DBMS
func GormConnect ¶
func (*DBMS) CodingNameExist ¶
func (*DBMS) EditCoding ¶
func (*DBMS) FindCoding ¶
func (*DBMS) FindCodingByCodingName ¶
func (*DBMS) FindMenuByMenuName ¶
func (*DBMS) FindUserByUserName ¶
func (*DBMS) GetChildrenCodings ¶
func (*DBMS) GetCodings ¶
func (*DBMS) IsCodingExist ¶
this method is for validation dependencies which must respect
func (*DBMS) IsMenuExist ¶
this method is for validation dependencies which must respect
func (*DBMS) IsUserExist ¶
this method is for validation dependencies which must respect
Source Files ¶
Click to show internal directories.
Click to hide internal directories.