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: 9 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.AuthServiceHTTPServer
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(logger log.Logger, uc coreV1.UserServiceClient, atr *data.AuthTokenRepo) *AuthService

func (*AuthService) Login

func (s *AuthService) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginResponse, error)

Login 登陆

type DeptService

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

func NewDeptService

func NewDeptService(logger log.Logger, uc coreV1.DeptServiceClient) *DeptService

func (*DeptService) CreateDept

func (*DeptService) DeleteDept

func (*DeptService) GetDept

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

func (*DeptService) ListDept

func (*DeptService) UpdateDept

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

func NewMenuService

func NewMenuService(logger log.Logger, uc coreV1.MenuServiceClient) *MenuService
func (s *MenuService) GetMenu(ctx context.Context, req *coreV1.GetMenuRequest) (*coreV1.Menu, error)

type PostService

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

func NewPostService

func NewPostService(logger log.Logger, uc coreV1.PostServiceClient) *PostService

func (*PostService) CreatePost

func (*PostService) DeletePost

func (*PostService) GetPost

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

func (*PostService) ListPost

func (*PostService) UpdatePost

type RoleService

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

func NewRoleService

func NewRoleService(logger log.Logger, uc coreV1.RoleServiceClient) *RoleService

func (*RoleService) CreateRole

func (*RoleService) DeleteRole

func (*RoleService) GetRole

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

func (*RoleService) ListRole

func (*RoleService) UpdateRole

type UserService

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

func NewUserService

func NewUserService(logger log.Logger, uc coreV1.UserServiceClient) *UserService

func (*UserService) CreateUser

func (*UserService) DeleteUser

func (*UserService) GetUser

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

func (*UserService) GetUserByName

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

func (*UserService) ListUser

func (*UserService) UpdateUser

func (*UserService) UserExists

Jump to

Keyboard shortcuts

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