Documentation ¶
Index ¶
- Variables
- type AuthService
- type DeptService
- func (s *DeptService) CreateDept(ctx context.Context, req *coreV1.CreateDeptRequest) (*coreV1.CreateDeptResponse, error)
- func (s *DeptService) DeleteDept(ctx context.Context, req *coreV1.DeleteDeptRequest) (*coreV1.DeleteDeptResponse, error)
- func (s *DeptService) GetDept(ctx context.Context, req *coreV1.GetDeptRequest) (*coreV1.Dept, error)
- func (s *DeptService) ListDept(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListDeptResponse, error)
- func (s *DeptService) UpdateDept(ctx context.Context, req *coreV1.UpdateDeptRequest) (*coreV1.UpdateDeptResponse, error)
- type MenuService
- func (s *MenuService) CreateMenu(ctx context.Context, req *coreV1.CreateMenuRequest) (*coreV1.CreateMenuResponse, error)
- func (s *MenuService) DeleteMenu(ctx context.Context, req *coreV1.DeleteMenuRequest) (*coreV1.DeleteMenuResponse, error)
- func (s *MenuService) GetMenu(ctx context.Context, req *coreV1.GetMenuRequest) (*coreV1.Menu, error)
- func (s *MenuService) ListMenu(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListMenuResponse, error)
- func (s *MenuService) UpdateMenu(ctx context.Context, req *coreV1.UpdateMenuRequest) (*coreV1.UpdateMenuResponse, error)
- type PostService
- func (s *PostService) CreatePost(ctx context.Context, req *coreV1.CreatePostRequest) (*coreV1.CreatePostResponse, error)
- func (s *PostService) DeletePost(ctx context.Context, req *coreV1.DeletePostRequest) (*coreV1.DeletePostResponse, error)
- func (s *PostService) GetPost(ctx context.Context, req *coreV1.GetPostRequest) (*coreV1.Post, error)
- func (s *PostService) ListPost(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListPostResponse, error)
- func (s *PostService) UpdatePost(ctx context.Context, req *coreV1.UpdatePostRequest) (*coreV1.UpdatePostResponse, error)
- type RoleService
- func (s *RoleService) CreateRole(ctx context.Context, req *coreV1.CreateRoleRequest) (*coreV1.CreateRoleResponse, error)
- func (s *RoleService) DeleteRole(ctx context.Context, req *coreV1.DeleteRoleRequest) (*coreV1.DeleteRoleResponse, error)
- func (s *RoleService) GetRole(ctx context.Context, req *coreV1.GetRoleRequest) (*coreV1.Role, error)
- func (s *RoleService) ListRole(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListRoleResponse, error)
- func (s *RoleService) UpdateRole(ctx context.Context, req *coreV1.UpdateRoleRequest) (*coreV1.UpdateRoleResponse, error)
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *coreV1.CreateUserRequest) (*coreV1.CreateUserResponse, error)
- func (s *UserService) DeleteUser(ctx context.Context, req *coreV1.DeleteUserRequest) (*coreV1.DeleteUserResponse, error)
- func (s *UserService) GetUser(ctx context.Context, req *coreV1.GetUserRequest) (*coreV1.User, error)
- func (s *UserService) GetUserByName(ctx context.Context, req *coreV1.GetUserByNameRequest) (*coreV1.User, error)
- func (s *UserService) ListUser(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListUserResponse, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *coreV1.UpdateUserRequest) (*coreV1.UpdateUserResponse, error)
- func (s *UserService) UserExists(ctx context.Context, req *coreV1.UserExistsRequest) (*coreV1.UserExistsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewAuthService, NewUserService, NewRoleService, NewPostService, NewDeptService, NewMenuService)
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 (s *DeptService) CreateDept(ctx context.Context, req *coreV1.CreateDeptRequest) (*coreV1.CreateDeptResponse, error)
func (*DeptService) DeleteDept ¶
func (s *DeptService) DeleteDept(ctx context.Context, req *coreV1.DeleteDeptRequest) (*coreV1.DeleteDeptResponse, error)
func (*DeptService) GetDept ¶
func (s *DeptService) GetDept(ctx context.Context, req *coreV1.GetDeptRequest) (*coreV1.Dept, error)
func (*DeptService) ListDept ¶
func (s *DeptService) ListDept(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListDeptResponse, error)
func (*DeptService) UpdateDept ¶
func (s *DeptService) UpdateDept(ctx context.Context, req *coreV1.UpdateDeptRequest) (*coreV1.UpdateDeptResponse, error)
type MenuService ¶
type MenuService struct { v1.MenuServiceHTTPServer // contains filtered or unexported fields }
func NewMenuService ¶
func NewMenuService(logger log.Logger, uc coreV1.MenuServiceClient) *MenuService
func (*MenuService) CreateMenu ¶
func (s *MenuService) CreateMenu(ctx context.Context, req *coreV1.CreateMenuRequest) (*coreV1.CreateMenuResponse, error)
func (*MenuService) DeleteMenu ¶
func (s *MenuService) DeleteMenu(ctx context.Context, req *coreV1.DeleteMenuRequest) (*coreV1.DeleteMenuResponse, error)
func (*MenuService) GetMenu ¶
func (s *MenuService) GetMenu(ctx context.Context, req *coreV1.GetMenuRequest) (*coreV1.Menu, error)
func (*MenuService) ListMenu ¶
func (s *MenuService) ListMenu(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListMenuResponse, error)
func (*MenuService) UpdateMenu ¶
func (s *MenuService) UpdateMenu(ctx context.Context, req *coreV1.UpdateMenuRequest) (*coreV1.UpdateMenuResponse, 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 (s *PostService) CreatePost(ctx context.Context, req *coreV1.CreatePostRequest) (*coreV1.CreatePostResponse, error)
func (*PostService) DeletePost ¶
func (s *PostService) DeletePost(ctx context.Context, req *coreV1.DeletePostRequest) (*coreV1.DeletePostResponse, error)
func (*PostService) GetPost ¶
func (s *PostService) GetPost(ctx context.Context, req *coreV1.GetPostRequest) (*coreV1.Post, error)
func (*PostService) ListPost ¶
func (s *PostService) ListPost(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListPostResponse, error)
func (*PostService) UpdatePost ¶
func (s *PostService) UpdatePost(ctx context.Context, req *coreV1.UpdatePostRequest) (*coreV1.UpdatePostResponse, error)
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 (s *RoleService) CreateRole(ctx context.Context, req *coreV1.CreateRoleRequest) (*coreV1.CreateRoleResponse, error)
func (*RoleService) DeleteRole ¶
func (s *RoleService) DeleteRole(ctx context.Context, req *coreV1.DeleteRoleRequest) (*coreV1.DeleteRoleResponse, error)
func (*RoleService) GetRole ¶
func (s *RoleService) GetRole(ctx context.Context, req *coreV1.GetRoleRequest) (*coreV1.Role, error)
func (*RoleService) ListRole ¶
func (s *RoleService) ListRole(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListRoleResponse, error)
func (*RoleService) UpdateRole ¶
func (s *RoleService) UpdateRole(ctx context.Context, req *coreV1.UpdateRoleRequest) (*coreV1.UpdateRoleResponse, error)
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 (s *UserService) CreateUser(ctx context.Context, req *coreV1.CreateUserRequest) (*coreV1.CreateUserResponse, error)
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *coreV1.DeleteUserRequest) (*coreV1.DeleteUserResponse, error)
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 (s *UserService) ListUser(ctx context.Context, req *pagination.PagingRequest) (*coreV1.ListUserResponse, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *coreV1.UpdateUserRequest) (*coreV1.UpdateUserResponse, error)
func (*UserService) UserExists ¶
func (s *UserService) UserExists(ctx context.Context, req *coreV1.UserExistsRequest) (*coreV1.UserExistsResponse, error)
Click to show internal directories.
Click to hide internal directories.