service

package
v0.0.0-...-96f2668 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	v1.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(logger log.Logger, ac *data.AuthRepo) *AuthService

func (*AuthService) IsAuthorized

func (*AuthService) Register

type DeptService

type DeptService struct {
	v1.UnimplementedDeptServiceServer
	// contains filtered or unexported fields
}

func NewDeptService

func NewDeptService(logger log.Logger, ac *data.DeptRepo) *DeptService

func (*DeptService) CreateDept

func (*DeptService) DeleteDept

func (*DeptService) GetDept

func (s *DeptService) GetDept(ctx context.Context, req *v1.GetDeptRequest) (*v1.Dept, error)

func (*DeptService) ListDept

func (*DeptService) UpdateDept

type MenuService struct {
	v1.UnimplementedMenuServiceServer
	// contains filtered or unexported fields
}

func NewMenuService

func NewMenuService(logger log.Logger, ac *data.MenuRepo) *MenuService
func (s *MenuService) GetMenu(ctx context.Context, req *v1.GetMenuRequest) (*v1.Menu, error)

type PostService

type PostService struct {
	v1.UnimplementedPostServiceServer
	// contains filtered or unexported fields
}

func NewPostService

func NewPostService(logger log.Logger, ac *data.PostRepo) *PostService

func (*PostService) CreatePost

func (*PostService) DeletePost

func (*PostService) GetPost

func (s *PostService) GetPost(ctx context.Context, req *v1.GetPostRequest) (*v1.Post, error)

func (*PostService) ListPost

func (*PostService) UpdatePost

type RoleService

type RoleService struct {
	v1.UnimplementedRoleServiceServer
	// contains filtered or unexported fields
}

func NewRoleService

func NewRoleService(logger log.Logger, ac *data.RoleRepo) *RoleService

func (*RoleService) CreateRole

func (*RoleService) DeleteRole

func (*RoleService) GetRole

func (s *RoleService) GetRole(ctx context.Context, req *v1.GetRoleRequest) (*v1.Role, error)

func (*RoleService) ListRole

func (*RoleService) UpdateRole

type UserService

type UserService struct {
	v1.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(logger log.Logger, uc *data.UserRepo) *UserService

func (*UserService) CreateUser

func (*UserService) DeleteUser

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, req *v1.GetUserRequest) (*v1.User, error)

func (*UserService) GetUserByName

func (s *UserService) GetUserByName(ctx context.Context, req *v1.GetUserByNameRequest) (*v1.User, error)

func (*UserService) ListUser

func (*UserService) UpdateUser

func (*UserService) UserExists

func (*UserService) VerifyPassword

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL