Versions in this module Expand all Collapse all v0 v0.1.1 Feb 25, 2020 v0.1.0 Feb 25, 2020 Changes in this version + type IDemo interface + Create func(ctx context.Context, item schema.Demo) (*schema.Demo, error) + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string, opts ...schema.DemoQueryOptions) (*schema.Demo, error) + Query func(ctx context.Context, params schema.DemoQueryParam, ...) (*schema.DemoQueryResult, error) + Update func(ctx context.Context, recordID string, item schema.Demo) (*schema.Demo, error) + UpdateStatus func(ctx context.Context, recordID string, status int) error + type ILogin interface + DestroyToken func(ctx context.Context, tokenString string) error + GenerateToken func(ctx context.Context, userID string) (*schema.LoginTokenInfo, error) + GetCaptcha func(ctx context.Context, length int) (*schema.LoginCaptcha, error) + GetLoginInfo func(ctx context.Context, userID string) (*schema.UserLoginInfo, error) + QueryUserMenuTree func(ctx context.Context, userID string) ([]*schema.MenuTree, error) + ResCaptcha func(ctx context.Context, w http.ResponseWriter, captchaID string, ...) error + UpdatePassword func(ctx context.Context, userID string, params schema.UpdatePasswordParam) error + Verify func(ctx context.Context, userName, password string) (*schema.User, error) + type IMenu interface + Create func(ctx context.Context, item schema.Menu) (*schema.Menu, error) + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string, opts ...schema.MenuQueryOptions) (*schema.Menu, error) + Query func(ctx context.Context, params schema.MenuQueryParam, ...) (*schema.MenuQueryResult, error) + Update func(ctx context.Context, recordID string, item schema.Menu) (*schema.Menu, error) + type IRole interface + Create func(ctx context.Context, item schema.Role) (*schema.Role, error) + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string, opts ...schema.RoleQueryOptions) (*schema.Role, error) + GetMenuResources func(ctx context.Context, item *schema.Role) (schema.MenuResources, error) + Query func(ctx context.Context, params schema.RoleQueryParam, ...) (*schema.RoleQueryResult, error) + Update func(ctx context.Context, recordID string, item schema.Role) (*schema.Role, error) + type ITrans interface + Exec func(ctx context.Context, fn func(context.Context) error) error + type IUser interface + Create func(ctx context.Context, item schema.User) (*schema.User, error) + Delete func(ctx context.Context, recordID string) error + Get func(ctx context.Context, recordID string, opts ...schema.UserQueryOptions) (*schema.User, error) + Query func(ctx context.Context, params schema.UserQueryParam, ...) (*schema.UserQueryResult, error) + QueryShow func(ctx context.Context, params schema.UserQueryParam, ...) (*schema.UserShowQueryResult, error) + Update func(ctx context.Context, recordID string, item schema.User) (*schema.User, error) + UpdateStatus func(ctx context.Context, recordID string, status int) error