v1

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Admin_Login_FullMethodName                = "/admin.v1.Admin/Login"
	Admin_LoginOut_FullMethodName             = "/admin.v1.Admin/LoginOut"
	Admin_GetAdministratorList_FullMethodName = "/admin.v1.Admin/GetAdministratorList"
	Admin_GetAdministrator_FullMethodName     = "/admin.v1.Admin/GetAdministrator"
	Admin_GetAdministratorInfo_FullMethodName = "/admin.v1.Admin/GetAdministratorInfo"
	Admin_CreateAdministrator_FullMethodName  = "/admin.v1.Admin/CreateAdministrator"
	Admin_UpdateAdministrator_FullMethodName  = "/admin.v1.Admin/UpdateAdministrator"
	Admin_DeleteAdministrator_FullMethodName  = "/admin.v1.Admin/DeleteAdministrator"
	Admin_RecoverAdministrator_FullMethodName = "/admin.v1.Admin/RecoverAdministrator"
	Admin_ForbidAdministrator_FullMethodName  = "/admin.v1.Admin/forbidAdministrator"
	Admin_ApproveAdministrator_FullMethodName = "/admin.v1.Admin/approveAdministrator"
	Admin_GetRoleAll_FullMethodName           = "/admin.v1.Admin/GetRoleAll"
	Admin_CreateRole_FullMethodName           = "/admin.v1.Admin/CreateRole"
	Admin_UpdateRole_FullMethodName           = "/admin.v1.Admin/UpdateRole"
	Admin_DeleteRole_FullMethodName           = "/admin.v1.Admin/DeleteRole"
	Admin_SetRolesForUser_FullMethodName      = "/admin.v1.Admin/SetRolesForUser"
	Admin_GetRolesForUser_FullMethodName      = "/admin.v1.Admin/GetRolesForUser"
	Admin_GetUsersForRole_FullMethodName      = "/admin.v1.Admin/GetUsersForRole"
	Admin_DeleteRoleForUser_FullMethodName    = "/admin.v1.Admin/DeleteRoleForUser"
	Admin_DeleteRolesForUser_FullMethodName   = "/admin.v1.Admin/DeleteRolesForUser"
	Admin_GetPolicies_FullMethodName          = "/admin.v1.Admin/GetPolicies"
	Admin_UpdatePolicies_FullMethodName       = "/admin.v1.Admin/UpdatePolicies"
	Admin_GetApiAll_FullMethodName            = "/admin.v1.Admin/GetApiAll"
	Admin_GetApiList_FullMethodName           = "/admin.v1.Admin/GetApiList"
	Admin_CreateApi_FullMethodName            = "/admin.v1.Admin/CreateApi"
	Admin_UpdateApi_FullMethodName            = "/admin.v1.Admin/UpdateApi"
	Admin_DeleteApi_FullMethodName            = "/admin.v1.Admin/DeleteApi"
	Admin_GetMenuAll_FullMethodName           = "/admin.v1.Admin/GetMenuAll"
	Admin_GetMenuTree_FullMethodName          = "/admin.v1.Admin/GetMenuTree"
	Admin_CreateMenu_FullMethodName           = "/admin.v1.Admin/CreateMenu"
	Admin_UpdateMenu_FullMethodName           = "/admin.v1.Admin/UpdateMenu"
	Admin_DeleteMenu_FullMethodName           = "/admin.v1.Admin/DeleteMenu"
	Admin_GetRoleMenuTree_FullMethodName      = "/admin.v1.Admin/GetRoleMenuTree"
	Admin_GetRoleMenu_FullMethodName          = "/admin.v1.Admin/GetRoleMenu"
	Admin_SetRoleMenu_FullMethodName          = "/admin.v1.Admin/SetRoleMenu"
	Admin_GetRoleMenuBtn_FullMethodName       = "/admin.v1.Admin/GetRoleMenuBtn"
	Admin_SetRoleMenuBtn_FullMethodName       = "/admin.v1.Admin/SetRoleMenuBtn"
	Admin_GetApiLogList_FullMethodName        = "/admin.v1.Admin/GetApiLogList"
	Admin_GetOssStsToken_FullMethodName       = "/admin.v1.Admin/GetOssStsToken"
)
View Source
const OperationAdminCreateAdministrator = "/admin.v1.Admin/CreateAdministrator"
View Source
const OperationAdminCreateApi = "/admin.v1.Admin/CreateApi"
View Source
const OperationAdminCreateMenu = "/admin.v1.Admin/CreateMenu"
View Source
const OperationAdminCreateRole = "/admin.v1.Admin/CreateRole"
View Source
const OperationAdminDeleteAdministrator = "/admin.v1.Admin/DeleteAdministrator"
View Source
const OperationAdminDeleteApi = "/admin.v1.Admin/DeleteApi"
View Source
const OperationAdminDeleteMenu = "/admin.v1.Admin/DeleteMenu"
View Source
const OperationAdminDeleteRole = "/admin.v1.Admin/DeleteRole"
View Source
const OperationAdminDeleteRoleForUser = "/admin.v1.Admin/DeleteRoleForUser"
View Source
const OperationAdminDeleteRolesForUser = "/admin.v1.Admin/DeleteRolesForUser"
View Source
const OperationAdminGetAdministrator = "/admin.v1.Admin/GetAdministrator"
View Source
const OperationAdminGetAdministratorInfo = "/admin.v1.Admin/GetAdministratorInfo"
View Source
const OperationAdminGetAdministratorList = "/admin.v1.Admin/GetAdministratorList"
View Source
const OperationAdminGetApiAll = "/admin.v1.Admin/GetApiAll"
View Source
const OperationAdminGetApiList = "/admin.v1.Admin/GetApiList"
View Source
const OperationAdminGetApiLogList = "/admin.v1.Admin/GetApiLogList"
View Source
const OperationAdminGetMenuAll = "/admin.v1.Admin/GetMenuAll"
View Source
const OperationAdminGetMenuTree = "/admin.v1.Admin/GetMenuTree"
View Source
const OperationAdminGetOssStsToken = "/admin.v1.Admin/GetOssStsToken"
View Source
const OperationAdminGetPolicies = "/admin.v1.Admin/GetPolicies"
View Source
const OperationAdminGetRoleAll = "/admin.v1.Admin/GetRoleAll"
View Source
const OperationAdminGetRoleMenu = "/admin.v1.Admin/GetRoleMenu"
View Source
const OperationAdminGetRoleMenuBtn = "/admin.v1.Admin/GetRoleMenuBtn"
View Source
const OperationAdminGetRoleMenuTree = "/admin.v1.Admin/GetRoleMenuTree"
View Source
const OperationAdminGetRolesForUser = "/admin.v1.Admin/GetRolesForUser"
View Source
const OperationAdminGetUsersForRole = "/admin.v1.Admin/GetUsersForRole"
View Source
const OperationAdminLogin = "/admin.v1.Admin/Login"
View Source
const OperationAdminLoginOut = "/admin.v1.Admin/LoginOut"
View Source
const OperationAdminRecoverAdministrator = "/admin.v1.Admin/RecoverAdministrator"
View Source
const OperationAdminSetRoleMenu = "/admin.v1.Admin/SetRoleMenu"
View Source
const OperationAdminSetRoleMenuBtn = "/admin.v1.Admin/SetRoleMenuBtn"
View Source
const OperationAdminSetRolesForUser = "/admin.v1.Admin/SetRolesForUser"
View Source
const OperationAdminUpdateAdministrator = "/admin.v1.Admin/UpdateAdministrator"
View Source
const OperationAdminUpdateApi = "/admin.v1.Admin/UpdateApi"
View Source
const OperationAdminUpdateMenu = "/admin.v1.Admin/UpdateMenu"
View Source
const OperationAdminUpdatePolicies = "/admin.v1.Admin/UpdatePolicies"
View Source
const OperationAdminUpdateRole = "/admin.v1.Admin/UpdateRole"
View Source
const OperationAdminapproveAdministrator = "/admin.v1.Admin/approveAdministrator"
View Source
const OperationAdminforbidAdministrator = "/admin.v1.Admin/forbidAdministrator"

Variables

View Source
var (
	BffErrorReason_name = map[int32]string{
		0: "RECORD_NOT_FOUND",
		1: "RECORD_ALREADY_EXISTS",
		2: "BAD_REQUEST",
		3: "SYSTEM_ERROR",
	}
	BffErrorReason_value = map[string]int32{
		"RECORD_NOT_FOUND":      0,
		"RECORD_ALREADY_EXISTS": 1,
		"BAD_REQUEST":           2,
		"SYSTEM_ERROR":          3,
	}
)

Enum value maps for BffErrorReason.

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "admin.v1.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _Admin_Login_Handler,
		},
		{
			MethodName: "LoginOut",
			Handler:    _Admin_LoginOut_Handler,
		},
		{
			MethodName: "GetAdministratorList",
			Handler:    _Admin_GetAdministratorList_Handler,
		},
		{
			MethodName: "GetAdministrator",
			Handler:    _Admin_GetAdministrator_Handler,
		},
		{
			MethodName: "GetAdministratorInfo",
			Handler:    _Admin_GetAdministratorInfo_Handler,
		},
		{
			MethodName: "CreateAdministrator",
			Handler:    _Admin_CreateAdministrator_Handler,
		},
		{
			MethodName: "UpdateAdministrator",
			Handler:    _Admin_UpdateAdministrator_Handler,
		},
		{
			MethodName: "DeleteAdministrator",
			Handler:    _Admin_DeleteAdministrator_Handler,
		},
		{
			MethodName: "RecoverAdministrator",
			Handler:    _Admin_RecoverAdministrator_Handler,
		},
		{
			MethodName: "forbidAdministrator",
			Handler:    _Admin_ForbidAdministrator_Handler,
		},
		{
			MethodName: "approveAdministrator",
			Handler:    _Admin_ApproveAdministrator_Handler,
		},
		{
			MethodName: "GetRoleAll",
			Handler:    _Admin_GetRoleAll_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _Admin_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _Admin_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _Admin_DeleteRole_Handler,
		},
		{
			MethodName: "SetRolesForUser",
			Handler:    _Admin_SetRolesForUser_Handler,
		},
		{
			MethodName: "GetRolesForUser",
			Handler:    _Admin_GetRolesForUser_Handler,
		},
		{
			MethodName: "GetUsersForRole",
			Handler:    _Admin_GetUsersForRole_Handler,
		},
		{
			MethodName: "DeleteRoleForUser",
			Handler:    _Admin_DeleteRoleForUser_Handler,
		},
		{
			MethodName: "DeleteRolesForUser",
			Handler:    _Admin_DeleteRolesForUser_Handler,
		},
		{
			MethodName: "GetPolicies",
			Handler:    _Admin_GetPolicies_Handler,
		},
		{
			MethodName: "UpdatePolicies",
			Handler:    _Admin_UpdatePolicies_Handler,
		},
		{
			MethodName: "GetApiAll",
			Handler:    _Admin_GetApiAll_Handler,
		},
		{
			MethodName: "GetApiList",
			Handler:    _Admin_GetApiList_Handler,
		},
		{
			MethodName: "CreateApi",
			Handler:    _Admin_CreateApi_Handler,
		},
		{
			MethodName: "UpdateApi",
			Handler:    _Admin_UpdateApi_Handler,
		},
		{
			MethodName: "DeleteApi",
			Handler:    _Admin_DeleteApi_Handler,
		},
		{
			MethodName: "GetMenuAll",
			Handler:    _Admin_GetMenuAll_Handler,
		},
		{
			MethodName: "GetMenuTree",
			Handler:    _Admin_GetMenuTree_Handler,
		},
		{
			MethodName: "CreateMenu",
			Handler:    _Admin_CreateMenu_Handler,
		},
		{
			MethodName: "UpdateMenu",
			Handler:    _Admin_UpdateMenu_Handler,
		},
		{
			MethodName: "DeleteMenu",
			Handler:    _Admin_DeleteMenu_Handler,
		},
		{
			MethodName: "GetRoleMenuTree",
			Handler:    _Admin_GetRoleMenuTree_Handler,
		},
		{
			MethodName: "GetRoleMenu",
			Handler:    _Admin_GetRoleMenu_Handler,
		},
		{
			MethodName: "SetRoleMenu",
			Handler:    _Admin_SetRoleMenu_Handler,
		},
		{
			MethodName: "GetRoleMenuBtn",
			Handler:    _Admin_GetRoleMenuBtn_Handler,
		},
		{
			MethodName: "SetRoleMenuBtn",
			Handler:    _Admin_SetRoleMenuBtn_Handler,
		},
		{
			MethodName: "GetApiLogList",
			Handler:    _Admin_GetApiLogList_Handler,
		},
		{
			MethodName: "GetOssStsToken",
			Handler:    _Admin_GetOssStsToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bff-admin/v1/admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_bff_admin_v1_admin_proto protoreflect.FileDescriptor
View Source
var File_bff_admin_v1_bff_error_reason_proto protoreflect.FileDescriptor

Functions

func ErrorBadRequest added in v0.0.10

func ErrorBadRequest(format string, args ...interface{}) *errors.Error

func ErrorRecordAlreadyExists added in v0.0.10

func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error

func ErrorRecordNotFound added in v0.0.10

func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error

func ErrorSystemError added in v0.0.10

func ErrorSystemError(format string, args ...interface{}) *errors.Error

func IsBadRequest added in v0.0.10

func IsBadRequest(err error) bool

func IsRecordAlreadyExists added in v0.0.10

func IsRecordAlreadyExists(err error) bool

func IsRecordNotFound added in v0.0.10

func IsRecordNotFound(err error) bool

func IsSystemError added in v0.0.10

func IsSystemError(err error) bool

func RegisterAdminHTTPServer

func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

Types

type AdminClient

type AdminClient interface {
	// -------------------------- 管理员服务 ----------------------------------------//
	// 管理员登陆
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRes, error)
	// 管理员退出
	LoginOut(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 管理员列表
	GetAdministratorList(ctx context.Context, in *GetBffAdminListReq, opts ...grpc.CallOption) (*GetBffAdminListPageRes, error)
	// 管理员详情
	GetAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BffAdmin, error)
	// 获取当前请求管理员信息
	GetAdministratorInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BffAdmin, error)
	// 管理员创建
	CreateAdministrator(ctx context.Context, in *CreateBffAdminReq, opts ...grpc.CallOption) (*BffAdmin, error)
	// 管理员更新
	UpdateAdministrator(ctx context.Context, in *UpdateBffAdminReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 管理员删除
	DeleteAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 管理员恢复
	RecoverAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 管理员禁用
	ForbidAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 管理员解禁
	ApproveAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// -------------------------- 权限服务 ----------------------------------------//
	// 权限 —— 角色列表
	GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRoleAllRes, error)
	// 权限 —— 角色创建
	CreateRole(ctx context.Context, in *CreateRoleReq, opts ...grpc.CallOption) (*Role, error)
	// 权限 —— 角色更新
	UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 角色删除
	DeleteRole(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 设置用户角色关系
	SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 获取用户角色列表
	GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRes, error)
	// 权限 —— 获取角色用户列表
	GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetUsersForRoleRes, error)
	// 权限 —— 删除用户某个角色
	DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 删除用户所有角色
	DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 策略授权规则 - 列表
	GetPolicies(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetPoliciesRes, error)
	// 权限 —— 策略授权规则 - 更新
	UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 所有Api列表
	GetApiAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetApiAllRes, error)
	// 权限 —— Api列表
	GetApiList(ctx context.Context, in *GetApiListReq, opts ...grpc.CallOption) (*GetApiListRes, error)
	// 权限 —— Api创建
	CreateApi(ctx context.Context, in *CreateApiReq, opts ...grpc.CallOption) (*Api, error)
	// 权限 —— Api更新
	UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— Api删除
	DeleteApi(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 所有Menu列表
	GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 权限 —— Menu列表
	GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 权限 —— Menu创建
	CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error)
	// 权限 —— Menu更新
	UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— Menu删除
	DeleteMenu(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 角色菜单列表树
	GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 权限 —— 角色菜单列表
	GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 权限 —— 角色菜单更新
	SetRoleMenu(ctx context.Context, in *SetRoleMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 权限 —— 获取角色菜单按钮列表
	GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRes, error)
	// 权限 —— 保存角色菜单按钮列表
	SetRoleMenuBtn(ctx context.Context, in *SetRoleMenuBtnReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// -------------------------- 日志服务 ----------------------------------------//
	// 日志 —— 列表
	GetApiLogList(ctx context.Context, in *GetApiLogListReq, opts ...grpc.CallOption) (*GetApiLogListRes, error)
	// 文件 ——  OSS STSTOKEN 获取
	GetOssStsToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OssStsTokenResponse, error)
}

AdminClient is the client API for Admin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

管理后台服务

func NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminHTTPClient

type AdminHTTPClient interface {
	ApproveAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	CreateAdministrator(ctx context.Context, req *CreateBffAdminReq, opts ...http.CallOption) (rsp *BffAdmin, err error)
	CreateApi(ctx context.Context, req *CreateApiReq, opts ...http.CallOption) (rsp *Api, err error)
	CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error)
	CreateRole(ctx context.Context, req *CreateRoleReq, opts ...http.CallOption) (rsp *Role, err error)
	DeleteAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteApi(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteMenu(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRole(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	ForbidAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *BffAdmin, err error)
	GetAdministratorInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *BffAdmin, err error)
	GetAdministratorList(ctx context.Context, req *GetBffAdminListReq, opts ...http.CallOption) (rsp *GetBffAdminListPageRes, err error)
	GetApiAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetApiAllRes, err error)
	GetApiList(ctx context.Context, req *GetApiListReq, opts ...http.CallOption) (rsp *GetApiListRes, err error)
	GetApiLogList(ctx context.Context, req *GetApiLogListReq, opts ...http.CallOption) (rsp *GetApiLogListRes, err error)
	GetMenuAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetOssStsToken(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *OssStsTokenResponse, err error)
	GetPolicies(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetPoliciesRes, err error)
	GetRoleAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetRoleAllRes, err error)
	GetRoleMenu(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetRoleMenuBtn(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRes, err error)
	GetRoleMenuTree(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRes, err error)
	GetUsersForRole(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetUsersForRoleRes, err error)
	Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginRes, err error)
	LoginOut(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	RecoverAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SetRoleMenu(ctx context.Context, req *SetRoleMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SetRoleMenuBtn(ctx context.Context, req *SetRoleMenuBtnReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SetRolesForUser(ctx context.Context, req *SetRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateAdministrator(ctx context.Context, req *UpdateBffAdminReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateApi(ctx context.Context, req *UpdateApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateMenu(ctx context.Context, req *UpdateMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdatePolicies(ctx context.Context, req *UpdatePoliciesReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewAdminHTTPClient

func NewAdminHTTPClient(client *http.Client) AdminHTTPClient

type AdminHTTPClientImpl

type AdminHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AdminHTTPClientImpl) ApproveAdministrator

func (c *AdminHTTPClientImpl) ApproveAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) CreateAdministrator

func (c *AdminHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateBffAdminReq, opts ...http.CallOption) (*BffAdmin, error)

func (*AdminHTTPClientImpl) CreateApi

func (c *AdminHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*Api, error)

func (*AdminHTTPClientImpl) CreateMenu

func (c *AdminHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)

func (*AdminHTTPClientImpl) CreateRole

func (c *AdminHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleReq, opts ...http.CallOption) (*Role, error)

func (*AdminHTTPClientImpl) DeleteAdministrator

func (c *AdminHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) DeleteApi

func (c *AdminHTTPClientImpl) DeleteApi(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) DeleteMenu

func (c *AdminHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) DeleteRole

func (c *AdminHTTPClientImpl) DeleteRole(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) DeleteRoleForUser

func (c *AdminHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) DeleteRolesForUser

func (c *AdminHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) ForbidAdministrator

func (c *AdminHTTPClientImpl) ForbidAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) GetAdministrator

func (c *AdminHTTPClientImpl) GetAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*BffAdmin, error)

func (*AdminHTTPClientImpl) GetAdministratorInfo

func (c *AdminHTTPClientImpl) GetAdministratorInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*BffAdmin, error)

func (*AdminHTTPClientImpl) GetAdministratorList

func (c *AdminHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetBffAdminListReq, opts ...http.CallOption) (*GetBffAdminListPageRes, error)

func (*AdminHTTPClientImpl) GetApiAll

func (c *AdminHTTPClientImpl) GetApiAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetApiAllRes, error)

func (*AdminHTTPClientImpl) GetApiList

func (c *AdminHTTPClientImpl) GetApiList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListRes, error)

func (*AdminHTTPClientImpl) GetApiLogList

func (c *AdminHTTPClientImpl) GetApiLogList(ctx context.Context, in *GetApiLogListReq, opts ...http.CallOption) (*GetApiLogListRes, error)

func (*AdminHTTPClientImpl) GetMenuAll

func (c *AdminHTTPClientImpl) GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)

func (*AdminHTTPClientImpl) GetMenuTree

func (c *AdminHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)

func (*AdminHTTPClientImpl) GetOssStsToken

func (c *AdminHTTPClientImpl) GetOssStsToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*OssStsTokenResponse, error)

func (*AdminHTTPClientImpl) GetPolicies

func (c *AdminHTTPClientImpl) GetPolicies(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetPoliciesRes, error)

func (*AdminHTTPClientImpl) GetRoleAll

func (c *AdminHTTPClientImpl) GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetRoleAllRes, error)

func (*AdminHTTPClientImpl) GetRoleMenu

func (c *AdminHTTPClientImpl) GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)

func (*AdminHTTPClientImpl) GetRoleMenuBtn

func (*AdminHTTPClientImpl) GetRoleMenuTree

func (c *AdminHTTPClientImpl) GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)

func (*AdminHTTPClientImpl) GetRolesForUser

func (*AdminHTTPClientImpl) GetUsersForRole

func (c *AdminHTTPClientImpl) GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetUsersForRoleRes, error)

func (*AdminHTTPClientImpl) Login

func (c *AdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginRes, error)

func (*AdminHTTPClientImpl) LoginOut

func (c *AdminHTTPClientImpl) LoginOut(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) RecoverAdministrator

func (c *AdminHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) SetRoleMenu

func (c *AdminHTTPClientImpl) SetRoleMenu(ctx context.Context, in *SetRoleMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) SetRoleMenuBtn

func (c *AdminHTTPClientImpl) SetRoleMenuBtn(ctx context.Context, in *SetRoleMenuBtnReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) SetRolesForUser

func (c *AdminHTTPClientImpl) SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) UpdateAdministrator

func (c *AdminHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateBffAdminReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) UpdateApi

func (c *AdminHTTPClientImpl) UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) UpdateMenu

func (c *AdminHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) UpdatePolicies

func (c *AdminHTTPClientImpl) UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...http.CallOption) (*emptypb.Empty, error)

func (*AdminHTTPClientImpl) UpdateRole

func (c *AdminHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)

type AdminHTTPServer

type AdminHTTPServer interface {
	// ApproveAdministrator 管理员解禁
	ApproveAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// CreateAdministrator 管理员创建
	CreateAdministrator(context.Context, *CreateBffAdminReq) (*BffAdmin, error)
	// CreateApi 权限 —— Api创建
	CreateApi(context.Context, *CreateApiReq) (*Api, error)
	// CreateMenu 权限 —— Menu创建
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// CreateRole 权限 —— 角色创建
	CreateRole(context.Context, *CreateRoleReq) (*Role, error)
	// DeleteAdministrator 管理员删除
	DeleteAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// DeleteApi 权限 —— Api删除
	DeleteApi(context.Context, *IdReq) (*emptypb.Empty, error)
	// DeleteMenu 权限 —— Menu删除
	DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
	// DeleteRole 权限 —— 角色删除
	DeleteRole(context.Context, *IdReq) (*emptypb.Empty, error)
	// DeleteRoleForUser 权限 —— 删除用户某个角色
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
	// DeleteRolesForUser 权限 —— 删除用户所有角色
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
	// ForbidAdministrator 管理员禁用
	ForbidAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// GetAdministrator 管理员详情
	GetAdministrator(context.Context, *IdReq) (*BffAdmin, error)
	// GetAdministratorInfo 获取当前请求管理员信息
	GetAdministratorInfo(context.Context, *emptypb.Empty) (*BffAdmin, error)
	// GetAdministratorList 管理员列表
	GetAdministratorList(context.Context, *GetBffAdminListReq) (*GetBffAdminListPageRes, error)
	// GetApiAll 权限 —— 所有Api列表
	GetApiAll(context.Context, *emptypb.Empty) (*GetApiAllRes, error)
	// GetApiList 权限 —— Api列表
	GetApiList(context.Context, *GetApiListReq) (*GetApiListRes, error)
	// GetApiLogList-------------------------- 日志服务 ----------------------------------------//
	// 日志 —— 列表
	GetApiLogList(context.Context, *GetApiLogListReq) (*GetApiLogListRes, error)
	// GetMenuAll 权限 —— 所有Menu列表
	GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// GetMenuTree 权限 —— Menu列表
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// GetOssStsToken 文件 ——  OSS STSTOKEN 获取
	GetOssStsToken(context.Context, *emptypb.Empty) (*OssStsTokenResponse, error)
	// GetPolicies 策略授权规则 - 列表
	GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
	// GetRoleAll-------------------------- 权限服务 ----------------------------------------//
	// 权限 —— 角色列表
	GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
	// GetRoleMenu 权限 —— 角色菜单列表
	GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// GetRoleMenuBtn 权限 —— 获取角色菜单按钮列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
	// GetRoleMenuTree 权限 —— 角色菜单列表树
	GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// GetRolesForUser 权限 —— 获取用户角色列表
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
	// GetUsersForRole 权限 —— 获取角色用户列表
	GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
	// Login-------------------------- 管理员服务 ----------------------------------------//
	// 管理员登陆
	Login(context.Context, *LoginReq) (*LoginRes, error)
	// LoginOut 管理员退出
	LoginOut(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// RecoverAdministrator 管理员恢复
	RecoverAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// SetRoleMenu 权限 —— 角色菜单更新
	SetRoleMenu(context.Context, *SetRoleMenuReq) (*emptypb.Empty, error)
	// SetRoleMenuBtn 权限 —— 保存角色菜单按钮列表
	SetRoleMenuBtn(context.Context, *SetRoleMenuBtnReq) (*emptypb.Empty, error)
	// SetRolesForUser 权限 —— 设置用户角色关系
	SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
	// UpdateAdministrator 管理员更新
	UpdateAdministrator(context.Context, *UpdateBffAdminReq) (*emptypb.Empty, error)
	// UpdateApi 权限 —— Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
	// UpdateMenu 权限 —— Menu更新
	UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
	// UpdatePolicies 权限 —— 策略授权规则 - 更新
	UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
	// UpdateRole 权限 —— 角色更新
	UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
}

type AdminServer

type AdminServer interface {
	// -------------------------- 管理员服务 ----------------------------------------//
	// 管理员登陆
	Login(context.Context, *LoginReq) (*LoginRes, error)
	// 管理员退出
	LoginOut(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// 管理员列表
	GetAdministratorList(context.Context, *GetBffAdminListReq) (*GetBffAdminListPageRes, error)
	// 管理员详情
	GetAdministrator(context.Context, *IdReq) (*BffAdmin, error)
	// 获取当前请求管理员信息
	GetAdministratorInfo(context.Context, *emptypb.Empty) (*BffAdmin, error)
	// 管理员创建
	CreateAdministrator(context.Context, *CreateBffAdminReq) (*BffAdmin, error)
	// 管理员更新
	UpdateAdministrator(context.Context, *UpdateBffAdminReq) (*emptypb.Empty, error)
	// 管理员删除
	DeleteAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// 管理员恢复
	RecoverAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// 管理员禁用
	ForbidAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// 管理员解禁
	ApproveAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
	// -------------------------- 权限服务 ----------------------------------------//
	// 权限 —— 角色列表
	GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
	// 权限 —— 角色创建
	CreateRole(context.Context, *CreateRoleReq) (*Role, error)
	// 权限 —— 角色更新
	UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
	// 权限 —— 角色删除
	DeleteRole(context.Context, *IdReq) (*emptypb.Empty, error)
	// 权限 —— 设置用户角色关系
	SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
	// 权限 —— 获取用户角色列表
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
	// 权限 —— 获取角色用户列表
	GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
	// 权限 —— 删除用户某个角色
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
	// 权限 —— 删除用户所有角色
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
	// 策略授权规则 - 列表
	GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
	// 权限 —— 策略授权规则 - 更新
	UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
	// 权限 —— 所有Api列表
	GetApiAll(context.Context, *emptypb.Empty) (*GetApiAllRes, error)
	// 权限 —— Api列表
	GetApiList(context.Context, *GetApiListReq) (*GetApiListRes, error)
	// 权限 —— Api创建
	CreateApi(context.Context, *CreateApiReq) (*Api, error)
	// 权限 —— Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
	// 权限 —— Api删除
	DeleteApi(context.Context, *IdReq) (*emptypb.Empty, error)
	// 权限 —— 所有Menu列表
	GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// 权限 —— Menu列表
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// 权限 —— Menu创建
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// 权限 —— Menu更新
	UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
	// 权限 —— Menu删除
	DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
	// 权限 —— 角色菜单列表树
	GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// 权限 —— 角色菜单列表
	GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// 权限 —— 角色菜单更新
	SetRoleMenu(context.Context, *SetRoleMenuReq) (*emptypb.Empty, error)
	// 权限 —— 获取角色菜单按钮列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
	// 权限 —— 保存角色菜单按钮列表
	SetRoleMenuBtn(context.Context, *SetRoleMenuBtnReq) (*emptypb.Empty, error)
	// -------------------------- 日志服务 ----------------------------------------//
	// 日志 —— 列表
	GetApiLogList(context.Context, *GetApiLogListReq) (*GetApiLogListRes, error)
	// 文件 ——  OSS STSTOKEN 获取
	GetOssStsToken(context.Context, *emptypb.Empty) (*OssStsTokenResponse, error)
	// contains filtered or unexported methods
}

AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility.

管理后台服务

type Api

type Api struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

响应 - API信息

func (*Api) Descriptor deprecated

func (*Api) Descriptor() ([]byte, []int)

Deprecated: Use Api.ProtoReflect.Descriptor instead.

func (*Api) GetCreatedAt

func (x *Api) GetCreatedAt() string

func (*Api) GetGroup

func (x *Api) GetGroup() string

func (*Api) GetId

func (x *Api) GetId() int64

func (*Api) GetMethod

func (x *Api) GetMethod() string

func (*Api) GetName

func (x *Api) GetName() string

func (*Api) GetPath

func (x *Api) GetPath() string

func (*Api) GetUpdatedAt

func (x *Api) GetUpdatedAt() string

func (*Api) ProtoMessage

func (*Api) ProtoMessage()

func (*Api) ProtoReflect

func (x *Api) ProtoReflect() protoreflect.Message

func (*Api) Reset

func (x *Api) Reset()

func (*Api) String

func (x *Api) String() string

type ApiLog

type ApiLog struct {

	// 日志id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// trace id
	TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// http/rpc
	Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"`
	// kratos操作路径
	Operation string `protobuf:"bytes,5,opt,name=operation,proto3" json:"operation,omitempty"`
	// 用户id
	UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"`
	// 请求内容
	Request string `protobuf:"bytes,9,opt,name=request,proto3" json:"request,omitempty"`
	// 响应内容
	Code string `protobuf:"bytes,10,opt,name=code,proto3" json:"code,omitempty"`
	// 提示信息
	Reason string `protobuf:"bytes,11,opt,name=reason,proto3" json:"reason,omitempty"`
	// 请求ip
	Ip string `protobuf:"bytes,12,opt,name=ip,proto3" json:"ip,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 域
	Domain string `protobuf:"bytes,14,opt,name=domain,proto3" json:"domain,omitempty"`
	// 名称
	Name string `protobuf:"bytes,15,opt,name=name,proto3" json:"name,omitempty"`
	// 响应时长
	Latency string `protobuf:"bytes,16,opt,name=latency,proto3" json:"latency,omitempty"`
	// 用户名
	Username string `protobuf:"bytes,17,opt,name=username,proto3" json:"username,omitempty"`
	// 角色
	Role string `protobuf:"bytes,18,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

响应 - 日志

func (*ApiLog) Descriptor deprecated

func (*ApiLog) Descriptor() ([]byte, []int)

Deprecated: Use ApiLog.ProtoReflect.Descriptor instead.

func (*ApiLog) GetCode

func (x *ApiLog) GetCode() string

func (*ApiLog) GetComponent

func (x *ApiLog) GetComponent() string

func (*ApiLog) GetCreatedAt

func (x *ApiLog) GetCreatedAt() string

func (*ApiLog) GetDomain

func (x *ApiLog) GetDomain() string

func (*ApiLog) GetId

func (x *ApiLog) GetId() int64

func (*ApiLog) GetIp

func (x *ApiLog) GetIp() string

func (*ApiLog) GetLatency

func (x *ApiLog) GetLatency() string

func (*ApiLog) GetMethod

func (x *ApiLog) GetMethod() string

func (*ApiLog) GetName

func (x *ApiLog) GetName() string

func (*ApiLog) GetOperation

func (x *ApiLog) GetOperation() string

func (*ApiLog) GetPath

func (x *ApiLog) GetPath() string

func (*ApiLog) GetReason

func (x *ApiLog) GetReason() string

func (*ApiLog) GetRequest

func (x *ApiLog) GetRequest() string

func (*ApiLog) GetRole

func (x *ApiLog) GetRole() string

func (*ApiLog) GetTraceId

func (x *ApiLog) GetTraceId() string

func (*ApiLog) GetUserId

func (x *ApiLog) GetUserId() string

func (*ApiLog) GetUsername

func (x *ApiLog) GetUsername() string

func (*ApiLog) ProtoMessage

func (*ApiLog) ProtoMessage()

func (*ApiLog) ProtoReflect

func (x *ApiLog) ProtoReflect() protoreflect.Message

func (*ApiLog) Reset

func (x *ApiLog) Reset()

func (*ApiLog) String

func (x *ApiLog) String() string

type BffAdmin

type BffAdmin struct {

	// id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 用户名
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// 手机号
	Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// 昵称
	Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// 头像
	Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// 状态 true正常 false冻结
	Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	// 角色
	Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"`
	// 上次登录时间
	LastLoginTime string `protobuf:"bytes,8,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"`
	// 上次登录ip
	LastLoginIp string `protobuf:"bytes,9,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 删除时间
	DeletedAt string `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

响应-管理员

func (*BffAdmin) Descriptor deprecated

func (*BffAdmin) Descriptor() ([]byte, []int)

Deprecated: Use BffAdmin.ProtoReflect.Descriptor instead.

func (*BffAdmin) GetAvatar

func (x *BffAdmin) GetAvatar() string

func (*BffAdmin) GetCreatedAt

func (x *BffAdmin) GetCreatedAt() string

func (*BffAdmin) GetDeletedAt

func (x *BffAdmin) GetDeletedAt() string

func (*BffAdmin) GetId

func (x *BffAdmin) GetId() int64

func (*BffAdmin) GetLastLoginIp

func (x *BffAdmin) GetLastLoginIp() string

func (*BffAdmin) GetLastLoginTime

func (x *BffAdmin) GetLastLoginTime() string

func (*BffAdmin) GetMobile

func (x *BffAdmin) GetMobile() string

func (*BffAdmin) GetNickname

func (x *BffAdmin) GetNickname() string

func (*BffAdmin) GetRole

func (x *BffAdmin) GetRole() string

func (*BffAdmin) GetStatus

func (x *BffAdmin) GetStatus() bool

func (*BffAdmin) GetUpdatedAt

func (x *BffAdmin) GetUpdatedAt() string

func (*BffAdmin) GetUsername

func (x *BffAdmin) GetUsername() string

func (*BffAdmin) ProtoMessage

func (*BffAdmin) ProtoMessage()

func (*BffAdmin) ProtoReflect

func (x *BffAdmin) ProtoReflect() protoreflect.Message

func (*BffAdmin) Reset

func (x *BffAdmin) Reset()

func (*BffAdmin) String

func (x *BffAdmin) String() string

type BffErrorReason added in v0.0.10

type BffErrorReason int32
const (
	BffErrorReason_RECORD_NOT_FOUND      BffErrorReason = 0
	BffErrorReason_RECORD_ALREADY_EXISTS BffErrorReason = 1
	BffErrorReason_BAD_REQUEST           BffErrorReason = 2
	BffErrorReason_SYSTEM_ERROR          BffErrorReason = 3
)

func (BffErrorReason) Descriptor added in v0.0.10

func (BffErrorReason) Enum added in v0.0.10

func (x BffErrorReason) Enum() *BffErrorReason

func (BffErrorReason) EnumDescriptor deprecated added in v0.0.10

func (BffErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use BffErrorReason.Descriptor instead.

func (BffErrorReason) Number added in v0.0.10

func (BffErrorReason) String added in v0.0.10

func (x BffErrorReason) String() string

func (BffErrorReason) Type added in v0.0.10

type CreateApiReq

type CreateApiReq struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API创建

func (*CreateApiReq) Descriptor deprecated

func (*CreateApiReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateApiReq.ProtoReflect.Descriptor instead.

func (*CreateApiReq) GetGroup

func (x *CreateApiReq) GetGroup() string

func (*CreateApiReq) GetMethod

func (x *CreateApiReq) GetMethod() string

func (*CreateApiReq) GetName

func (x *CreateApiReq) GetName() string

func (*CreateApiReq) GetPath

func (x *CreateApiReq) GetPath() string

func (*CreateApiReq) ProtoMessage

func (*CreateApiReq) ProtoMessage()

func (*CreateApiReq) ProtoReflect

func (x *CreateApiReq) ProtoReflect() protoreflect.Message

func (*CreateApiReq) Reset

func (x *CreateApiReq) Reset()

func (*CreateApiReq) String

func (x *CreateApiReq) String() string

type CreateBffAdminReq

type CreateBffAdminReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 密码
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// 手机号
	Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// 昵称
	Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// 头像
	Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// 状态 true正常 false冻结
	Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	// 当前角色数组,默认第一个为当前角色
	Role []string `protobuf:"bytes,7,rep,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 管理员创建

func (*CreateBffAdminReq) Descriptor deprecated

func (*CreateBffAdminReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateBffAdminReq.ProtoReflect.Descriptor instead.

func (*CreateBffAdminReq) GetAvatar

func (x *CreateBffAdminReq) GetAvatar() string

func (*CreateBffAdminReq) GetMobile

func (x *CreateBffAdminReq) GetMobile() string

func (*CreateBffAdminReq) GetNickname

func (x *CreateBffAdminReq) GetNickname() string

func (*CreateBffAdminReq) GetPassword

func (x *CreateBffAdminReq) GetPassword() string

func (*CreateBffAdminReq) GetRole

func (x *CreateBffAdminReq) GetRole() []string

func (*CreateBffAdminReq) GetStatus

func (x *CreateBffAdminReq) GetStatus() bool

func (*CreateBffAdminReq) GetUsername

func (x *CreateBffAdminReq) GetUsername() string

func (*CreateBffAdminReq) ProtoMessage

func (*CreateBffAdminReq) ProtoMessage()

func (*CreateBffAdminReq) ProtoReflect

func (x *CreateBffAdminReq) ProtoReflect() protoreflect.Message

func (*CreateBffAdminReq) Reset

func (x *CreateBffAdminReq) Reset()

func (*CreateBffAdminReq) String

func (x *CreateBffAdminReq) String() string

type CreateMenuReq

type CreateMenuReq struct {

	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 菜单创建

func (*CreateMenuReq) Descriptor deprecated

func (*CreateMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateMenuReq.ProtoReflect.Descriptor instead.

func (*CreateMenuReq) GetComponent

func (x *CreateMenuReq) GetComponent() string

func (*CreateMenuReq) GetHidden

func (x *CreateMenuReq) GetHidden() bool

func (*CreateMenuReq) GetIcon

func (x *CreateMenuReq) GetIcon() string

func (*CreateMenuReq) GetMenuBtns

func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn

func (*CreateMenuReq) GetName

func (x *CreateMenuReq) GetName() string

func (*CreateMenuReq) GetParentId

func (x *CreateMenuReq) GetParentId() int64

func (*CreateMenuReq) GetParentIds

func (x *CreateMenuReq) GetParentIds() string

func (*CreateMenuReq) GetPath

func (x *CreateMenuReq) GetPath() string

func (*CreateMenuReq) GetSort

func (x *CreateMenuReq) GetSort() int64

func (*CreateMenuReq) GetTitle

func (x *CreateMenuReq) GetTitle() string

func (*CreateMenuReq) ProtoMessage

func (*CreateMenuReq) ProtoMessage()

func (*CreateMenuReq) ProtoReflect

func (x *CreateMenuReq) ProtoReflect() protoreflect.Message

func (*CreateMenuReq) Reset

func (x *CreateMenuReq) Reset()

func (*CreateMenuReq) String

func (x *CreateMenuReq) String() string

type CreateRoleReq

type CreateRoleReq struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色创建

func (*CreateRoleReq) Descriptor deprecated

func (*CreateRoleReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateRoleReq.ProtoReflect.Descriptor instead.

func (*CreateRoleReq) GetName

func (x *CreateRoleReq) GetName() string

func (*CreateRoleReq) ProtoMessage

func (*CreateRoleReq) ProtoMessage()

func (*CreateRoleReq) ProtoReflect

func (x *CreateRoleReq) ProtoReflect() protoreflect.Message

func (*CreateRoleReq) Reset

func (x *CreateRoleReq) Reset()

func (*CreateRoleReq) String

func (x *CreateRoleReq) String() string

type DeleteRoleForUserReq

type DeleteRoleForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 角色名
	Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 删除用户(单个)角色

func (*DeleteRoleForUserReq) Descriptor deprecated

func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRoleForUserReq.ProtoReflect.Descriptor instead.

func (*DeleteRoleForUserReq) GetRole

func (x *DeleteRoleForUserReq) GetRole() string

func (*DeleteRoleForUserReq) GetUsername

func (x *DeleteRoleForUserReq) GetUsername() string

func (*DeleteRoleForUserReq) ProtoMessage

func (*DeleteRoleForUserReq) ProtoMessage()

func (*DeleteRoleForUserReq) ProtoReflect

func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message

func (*DeleteRoleForUserReq) Reset

func (x *DeleteRoleForUserReq) Reset()

func (*DeleteRoleForUserReq) String

func (x *DeleteRoleForUserReq) String() string

type DeleteRolesForUserReq

type DeleteRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

请求 - 删除用户(全部)角色

func (*DeleteRolesForUserReq) Descriptor deprecated

func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRolesForUserReq.ProtoReflect.Descriptor instead.

func (*DeleteRolesForUserReq) GetUsername

func (x *DeleteRolesForUserReq) GetUsername() string

func (*DeleteRolesForUserReq) ProtoMessage

func (*DeleteRolesForUserReq) ProtoMessage()

func (*DeleteRolesForUserReq) ProtoReflect

func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message

func (*DeleteRolesForUserReq) Reset

func (x *DeleteRolesForUserReq) Reset()

func (*DeleteRolesForUserReq) String

func (x *DeleteRolesForUserReq) String() string

type ErrorMessageRes

type ErrorMessageRes struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorMessageRes) Descriptor deprecated

func (*ErrorMessageRes) Descriptor() ([]byte, []int)

Deprecated: Use ErrorMessageRes.ProtoReflect.Descriptor instead.

func (*ErrorMessageRes) GetMessage

func (x *ErrorMessageRes) GetMessage() string

func (*ErrorMessageRes) ProtoMessage

func (*ErrorMessageRes) ProtoMessage()

func (*ErrorMessageRes) ProtoReflect

func (x *ErrorMessageRes) ProtoReflect() protoreflect.Message

func (*ErrorMessageRes) Reset

func (x *ErrorMessageRes) Reset()

func (*ErrorMessageRes) String

func (x *ErrorMessageRes) String() string

type GetApiAllRes

type GetApiAllRes struct {

	// 列表
	List []*Api `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - api列表(全部)

func (*GetApiAllRes) Descriptor deprecated

func (*GetApiAllRes) Descriptor() ([]byte, []int)

Deprecated: Use GetApiAllRes.ProtoReflect.Descriptor instead.

func (*GetApiAllRes) GetList

func (x *GetApiAllRes) GetList() []*Api

func (*GetApiAllRes) ProtoMessage

func (*GetApiAllRes) ProtoMessage()

func (*GetApiAllRes) ProtoReflect

func (x *GetApiAllRes) ProtoReflect() protoreflect.Message

func (*GetApiAllRes) Reset

func (x *GetApiAllRes) Reset()

func (*GetApiAllRes) String

func (x *GetApiAllRes) String() string

type GetApiListReq

type GetApiListReq struct {

	// 页码
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API分页列表

func (*GetApiListReq) Descriptor deprecated

func (*GetApiListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetApiListReq.ProtoReflect.Descriptor instead.

func (*GetApiListReq) GetGroup

func (x *GetApiListReq) GetGroup() string

func (*GetApiListReq) GetMethod

func (x *GetApiListReq) GetMethod() string

func (*GetApiListReq) GetName

func (x *GetApiListReq) GetName() string

func (*GetApiListReq) GetPage

func (x *GetApiListReq) GetPage() int64

func (*GetApiListReq) GetPageSize

func (x *GetApiListReq) GetPageSize() int64

func (*GetApiListReq) GetPath

func (x *GetApiListReq) GetPath() string

func (*GetApiListReq) ProtoMessage

func (*GetApiListReq) ProtoMessage()

func (*GetApiListReq) ProtoReflect

func (x *GetApiListReq) ProtoReflect() protoreflect.Message

func (*GetApiListReq) Reset

func (x *GetApiListReq) Reset()

func (*GetApiListReq) String

func (x *GetApiListReq) String() string

type GetApiListRes

type GetApiListRes struct {

	// 总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*Api `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - API分页

func (*GetApiListRes) Descriptor deprecated

func (*GetApiListRes) Descriptor() ([]byte, []int)

Deprecated: Use GetApiListRes.ProtoReflect.Descriptor instead.

func (*GetApiListRes) GetList

func (x *GetApiListRes) GetList() []*Api

func (*GetApiListRes) GetTotal

func (x *GetApiListRes) GetTotal() int64

func (*GetApiListRes) ProtoMessage

func (*GetApiListRes) ProtoMessage()

func (*GetApiListRes) ProtoReflect

func (x *GetApiListRes) ProtoReflect() protoreflect.Message

func (*GetApiListRes) Reset

func (x *GetApiListRes) Reset()

func (*GetApiListRes) String

func (x *GetApiListRes) String() string

type GetApiLogListReq

type GetApiLogListReq struct {

	// 页码
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// userId
	UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 用户名
	Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
	// 角色
	Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"`
	// 路径
	Operation string `protobuf:"bytes,7,opt,name=operation,proto3" json:"operation,omitempty"`
	// ip
	Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"`
	// trace_id
	TraceId string `protobuf:"bytes,9,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// contains filtered or unexported fields
}

请求 - 日志列表

func (*GetApiLogListReq) Descriptor deprecated

func (*GetApiLogListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetApiLogListReq.ProtoReflect.Descriptor instead.

func (*GetApiLogListReq) GetIp

func (x *GetApiLogListReq) GetIp() string

func (*GetApiLogListReq) GetName

func (x *GetApiLogListReq) GetName() string

func (*GetApiLogListReq) GetOperation

func (x *GetApiLogListReq) GetOperation() string

func (*GetApiLogListReq) GetPage

func (x *GetApiLogListReq) GetPage() int64

func (*GetApiLogListReq) GetPageSize

func (x *GetApiLogListReq) GetPageSize() int64

func (*GetApiLogListReq) GetRole

func (x *GetApiLogListReq) GetRole() string

func (*GetApiLogListReq) GetTraceId

func (x *GetApiLogListReq) GetTraceId() string

func (*GetApiLogListReq) GetUserId

func (x *GetApiLogListReq) GetUserId() string

func (*GetApiLogListReq) GetUsername

func (x *GetApiLogListReq) GetUsername() string

func (*GetApiLogListReq) ProtoMessage

func (*GetApiLogListReq) ProtoMessage()

func (*GetApiLogListReq) ProtoReflect

func (x *GetApiLogListReq) ProtoReflect() protoreflect.Message

func (*GetApiLogListReq) Reset

func (x *GetApiLogListReq) Reset()

func (*GetApiLogListReq) String

func (x *GetApiLogListReq) String() string

type GetApiLogListRes

type GetApiLogListRes struct {

	// 总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*ApiLog `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 日志列表

func (*GetApiLogListRes) Descriptor deprecated

func (*GetApiLogListRes) Descriptor() ([]byte, []int)

Deprecated: Use GetApiLogListRes.ProtoReflect.Descriptor instead.

func (*GetApiLogListRes) GetList

func (x *GetApiLogListRes) GetList() []*ApiLog

func (*GetApiLogListRes) GetTotal

func (x *GetApiLogListRes) GetTotal() int64

func (*GetApiLogListRes) ProtoMessage

func (*GetApiLogListRes) ProtoMessage()

func (*GetApiLogListRes) ProtoReflect

func (x *GetApiLogListRes) ProtoReflect() protoreflect.Message

func (*GetApiLogListRes) Reset

func (x *GetApiLogListRes) Reset()

func (*GetApiLogListRes) String

func (x *GetApiLogListRes) String() string

type GetBffAdminListPageRes

type GetBffAdminListPageRes struct {

	// 总记录数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*BffAdmin `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

请求 - 管理员分页

func (*GetBffAdminListPageRes) Descriptor deprecated

func (*GetBffAdminListPageRes) Descriptor() ([]byte, []int)

Deprecated: Use GetBffAdminListPageRes.ProtoReflect.Descriptor instead.

func (*GetBffAdminListPageRes) GetList

func (x *GetBffAdminListPageRes) GetList() []*BffAdmin

func (*GetBffAdminListPageRes) GetTotal

func (x *GetBffAdminListPageRes) GetTotal() int64

func (*GetBffAdminListPageRes) ProtoMessage

func (*GetBffAdminListPageRes) ProtoMessage()

func (*GetBffAdminListPageRes) ProtoReflect

func (x *GetBffAdminListPageRes) ProtoReflect() protoreflect.Message

func (*GetBffAdminListPageRes) Reset

func (x *GetBffAdminListPageRes) Reset()

func (*GetBffAdminListPageRes) String

func (x *GetBffAdminListPageRes) String() string

type GetBffAdminListReq

type GetBffAdminListReq struct {

	// 页码
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 用户名
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// 手机号
	Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// 昵称
	Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// 状态 1正常 0冻结
	Status *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	// 创建开始时间
	CreatedAtStart string `protobuf:"bytes,7,opt,name=created_at_start,json=createdAtStart,proto3" json:"created_at_start,omitempty"`
	// 创建结束时间
	CreatedAtEnd string `protobuf:"bytes,8,opt,name=created_at_end,json=createdAtEnd,proto3" json:"created_at_end,omitempty"`
	// contains filtered or unexported fields
}

请求 - 管理员列表

func (*GetBffAdminListReq) Descriptor deprecated

func (*GetBffAdminListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBffAdminListReq.ProtoReflect.Descriptor instead.

func (*GetBffAdminListReq) GetCreatedAtEnd

func (x *GetBffAdminListReq) GetCreatedAtEnd() string

func (*GetBffAdminListReq) GetCreatedAtStart

func (x *GetBffAdminListReq) GetCreatedAtStart() string

func (*GetBffAdminListReq) GetMobile

func (x *GetBffAdminListReq) GetMobile() string

func (*GetBffAdminListReq) GetNickname

func (x *GetBffAdminListReq) GetNickname() string

func (*GetBffAdminListReq) GetPage

func (x *GetBffAdminListReq) GetPage() int64

func (*GetBffAdminListReq) GetPageSize

func (x *GetBffAdminListReq) GetPageSize() int64

func (*GetBffAdminListReq) GetStatus

func (x *GetBffAdminListReq) GetStatus() *wrapperspb.BoolValue

func (*GetBffAdminListReq) GetUsername

func (x *GetBffAdminListReq) GetUsername() string

func (*GetBffAdminListReq) ProtoMessage

func (*GetBffAdminListReq) ProtoMessage()

func (*GetBffAdminListReq) ProtoReflect

func (x *GetBffAdminListReq) ProtoReflect() protoreflect.Message

func (*GetBffAdminListReq) Reset

func (x *GetBffAdminListReq) Reset()

func (*GetBffAdminListReq) String

func (x *GetBffAdminListReq) String() string

type GetMenuTreeRes

type GetMenuTreeRes struct {

	// 菜单列表
	List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取菜单树 响应 - 菜单树列表

func (*GetMenuTreeRes) Descriptor deprecated

func (*GetMenuTreeRes) Descriptor() ([]byte, []int)

Deprecated: Use GetMenuTreeRes.ProtoReflect.Descriptor instead.

func (*GetMenuTreeRes) GetList

func (x *GetMenuTreeRes) GetList() []*Menu

func (*GetMenuTreeRes) ProtoMessage

func (*GetMenuTreeRes) ProtoMessage()

func (*GetMenuTreeRes) ProtoReflect

func (x *GetMenuTreeRes) ProtoReflect() protoreflect.Message

func (*GetMenuTreeRes) Reset

func (x *GetMenuTreeRes) Reset()

func (*GetMenuTreeRes) String

func (x *GetMenuTreeRes) String() string

type GetPoliciesRes

type GetPoliciesRes struct {
	PolicyRules []*PolicyRules `protobuf:"bytes,1,rep,name=policyRules,proto3" json:"policyRules,omitempty"`
	// contains filtered or unexported fields
}

响应 - 权限策略列表

func (*GetPoliciesRes) Descriptor deprecated

func (*GetPoliciesRes) Descriptor() ([]byte, []int)

Deprecated: Use GetPoliciesRes.ProtoReflect.Descriptor instead.

func (*GetPoliciesRes) GetPolicyRules

func (x *GetPoliciesRes) GetPolicyRules() []*PolicyRules

func (*GetPoliciesRes) ProtoMessage

func (*GetPoliciesRes) ProtoMessage()

func (*GetPoliciesRes) ProtoReflect

func (x *GetPoliciesRes) ProtoReflect() protoreflect.Message

func (*GetPoliciesRes) Reset

func (x *GetPoliciesRes) Reset()

func (*GetPoliciesRes) String

func (x *GetPoliciesRes) String() string

type GetRoleAllRes

type GetRoleAllRes struct {
	List []*Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取角色列表

func (*GetRoleAllRes) Descriptor deprecated

func (*GetRoleAllRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleAllRes.ProtoReflect.Descriptor instead.

func (*GetRoleAllRes) GetList

func (x *GetRoleAllRes) GetList() []*Role

func (*GetRoleAllRes) ProtoMessage

func (*GetRoleAllRes) ProtoMessage()

func (*GetRoleAllRes) ProtoReflect

func (x *GetRoleAllRes) ProtoReflect() protoreflect.Message

func (*GetRoleAllRes) Reset

func (x *GetRoleAllRes) Reset()

func (*GetRoleAllRes) String

func (x *GetRoleAllRes) String() string

type GetRoleMenuBtnReq

type GetRoleMenuBtnReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 角色名称
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,3,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取角色菜单按钮

func (*GetRoleMenuBtnReq) Descriptor deprecated

func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnReq) GetMenuId

func (x *GetRoleMenuBtnReq) GetMenuId() int64

func (*GetRoleMenuBtnReq) GetRoleId

func (x *GetRoleMenuBtnReq) GetRoleId() int64

func (*GetRoleMenuBtnReq) GetRoleName

func (x *GetRoleMenuBtnReq) GetRoleName() string

func (*GetRoleMenuBtnReq) ProtoMessage

func (*GetRoleMenuBtnReq) ProtoMessage()

func (*GetRoleMenuBtnReq) ProtoReflect

func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message

func (*GetRoleMenuBtnReq) Reset

func (x *GetRoleMenuBtnReq) Reset()

func (*GetRoleMenuBtnReq) String

func (x *GetRoleMenuBtnReq) String() string

type GetRoleMenuBtnRes

type GetRoleMenuBtnRes struct {

	// 菜单按钮列表
	List []*MenuBtn `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色菜单按钮列表

func (*GetRoleMenuBtnRes) Descriptor deprecated

func (*GetRoleMenuBtnRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleMenuBtnRes.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnRes) GetList

func (x *GetRoleMenuBtnRes) GetList() []*MenuBtn

func (*GetRoleMenuBtnRes) ProtoMessage

func (*GetRoleMenuBtnRes) ProtoMessage()

func (*GetRoleMenuBtnRes) ProtoReflect

func (x *GetRoleMenuBtnRes) ProtoReflect() protoreflect.Message

func (*GetRoleMenuBtnRes) Reset

func (x *GetRoleMenuBtnRes) Reset()

func (*GetRoleMenuBtnRes) String

func (x *GetRoleMenuBtnRes) String() string

type GetRolesForUserReq

type GetRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取用户角色列表

func (*GetRolesForUserReq) Descriptor deprecated

func (*GetRolesForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use GetRolesForUserReq.ProtoReflect.Descriptor instead.

func (*GetRolesForUserReq) GetUsername

func (x *GetRolesForUserReq) GetUsername() string

func (*GetRolesForUserReq) ProtoMessage

func (*GetRolesForUserReq) ProtoMessage()

func (*GetRolesForUserReq) ProtoReflect

func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message

func (*GetRolesForUserReq) Reset

func (x *GetRolesForUserReq) Reset()

func (*GetRolesForUserReq) String

func (x *GetRolesForUserReq) String() string

type GetRolesForUserRes

type GetRolesForUserRes struct {

	// 角色数组
	Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

响应 - 用户角色列表

func (*GetRolesForUserRes) Descriptor deprecated

func (*GetRolesForUserRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRolesForUserRes.ProtoReflect.Descriptor instead.

func (*GetRolesForUserRes) GetRoles

func (x *GetRolesForUserRes) GetRoles() []string

func (*GetRolesForUserRes) ProtoMessage

func (*GetRolesForUserRes) ProtoMessage()

func (*GetRolesForUserRes) ProtoReflect

func (x *GetRolesForUserRes) ProtoReflect() protoreflect.Message

func (*GetRolesForUserRes) Reset

func (x *GetRolesForUserRes) Reset()

func (*GetRolesForUserRes) String

func (x *GetRolesForUserRes) String() string

type GetUsersForRoleRes

type GetUsersForRoleRes struct {

	// 用户列表
	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色用户列表

func (*GetUsersForRoleRes) Descriptor deprecated

func (*GetUsersForRoleRes) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersForRoleRes.ProtoReflect.Descriptor instead.

func (*GetUsersForRoleRes) GetUsers

func (x *GetUsersForRoleRes) GetUsers() []string

func (*GetUsersForRoleRes) ProtoMessage

func (*GetUsersForRoleRes) ProtoMessage()

func (*GetUsersForRoleRes) ProtoReflect

func (x *GetUsersForRoleRes) ProtoReflect() protoreflect.Message

func (*GetUsersForRoleRes) Reset

func (x *GetUsersForRoleRes) Reset()

func (*GetUsersForRoleRes) String

func (x *GetUsersForRoleRes) String() string

type IdReq

type IdReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - id主键

func (*IdReq) Descriptor deprecated

func (*IdReq) Descriptor() ([]byte, []int)

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

func (x *IdReq) ProtoReflect() protoreflect.Message

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

type LoginReq

type LoginReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 密码
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

请求-管理员登录

func (*LoginReq) Descriptor deprecated

func (*LoginReq) Descriptor() ([]byte, []int)

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetUsername

func (x *LoginReq) GetUsername() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

func (x *LoginReq) ProtoReflect() protoreflect.Message

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

type LoginRes

type LoginRes struct {

	// token
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

响应-管理员登录Token

func (*LoginRes) Descriptor deprecated

func (*LoginRes) Descriptor() ([]byte, []int)

Deprecated: Use LoginRes.ProtoReflect.Descriptor instead.

func (*LoginRes) GetToken

func (x *LoginRes) GetToken() string

func (*LoginRes) ProtoMessage

func (*LoginRes) ProtoMessage()

func (*LoginRes) ProtoReflect

func (x *LoginRes) ProtoReflect() protoreflect.Message

func (*LoginRes) Reset

func (x *LoginRes) Reset()

func (*LoginRes) String

func (x *LoginRes) String() string
type Menu struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 子菜单
	Children []*Menu `protobuf:"bytes,12,rep,name=children,proto3" json:"children,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单详情

func (*Menu) Descriptor() ([]byte, []int)

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

func (x *Menu) GetChildren() []*Menu
func (x *Menu) GetComponent() string
func (x *Menu) GetCreatedAt() string
func (x *Menu) GetHidden() bool
func (x *Menu) GetIcon() string
func (x *Menu) GetId() int64
func (x *Menu) GetMenuBtns() []*MenuBtn
func (x *Menu) GetName() string
func (x *Menu) GetParentId() int64
func (x *Menu) GetParentIds() string
func (x *Menu) GetPath() string
func (x *Menu) GetSort() int64
func (x *Menu) GetTitle() string
func (x *Menu) GetUpdatedAt() string
func (*Menu) ProtoMessage()
func (x *Menu) ProtoReflect() protoreflect.Message
func (x *Menu) Reset()
func (x *Menu) String() string
type MenuBtn struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// 按钮名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 描述
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// 英文标识
	Identifier string `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单按钮详情

func (*MenuBtn) Descriptor() ([]byte, []int)

Deprecated: Use MenuBtn.ProtoReflect.Descriptor instead.

func (x *MenuBtn) GetCreatedAt() string
func (x *MenuBtn) GetDescription() string
func (x *MenuBtn) GetId() int64
func (x *MenuBtn) GetIdentifier() string
func (x *MenuBtn) GetMenuId() int64
func (x *MenuBtn) GetName() string
func (x *MenuBtn) GetUpdatedAt() string
func (*MenuBtn) ProtoMessage()
func (x *MenuBtn) ProtoReflect() protoreflect.Message
func (x *MenuBtn) Reset()
func (x *MenuBtn) String() string

type OssStsTokenResponse

type OssStsTokenResponse struct {

	// access_key
	AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	// access_secret
	AccessSecret string `protobuf:"bytes,2,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"`
	// 过期时间
	Expiration string `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// 安全令牌
	SecurityToken string `protobuf:"bytes,4,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"`
	// 终端
	EndPoint string `protobuf:"bytes,5,opt,name=end_point,json=endPoint,proto3" json:"end_point,omitempty"`
	// 存储桶
	BucketName string `protobuf:"bytes,6,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
	// 区域
	Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"`
	// url
	Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

响应 - OSS前端直传信息

func (*OssStsTokenResponse) Descriptor deprecated

func (*OssStsTokenResponse) Descriptor() ([]byte, []int)

Deprecated: Use OssStsTokenResponse.ProtoReflect.Descriptor instead.

func (*OssStsTokenResponse) GetAccessKey

func (x *OssStsTokenResponse) GetAccessKey() string

func (*OssStsTokenResponse) GetAccessSecret

func (x *OssStsTokenResponse) GetAccessSecret() string

func (*OssStsTokenResponse) GetBucketName

func (x *OssStsTokenResponse) GetBucketName() string

func (*OssStsTokenResponse) GetEndPoint

func (x *OssStsTokenResponse) GetEndPoint() string

func (*OssStsTokenResponse) GetExpiration

func (x *OssStsTokenResponse) GetExpiration() string

func (*OssStsTokenResponse) GetRegion

func (x *OssStsTokenResponse) GetRegion() string

func (*OssStsTokenResponse) GetSecurityToken

func (x *OssStsTokenResponse) GetSecurityToken() string

func (*OssStsTokenResponse) GetUrl

func (x *OssStsTokenResponse) GetUrl() string

func (*OssStsTokenResponse) ProtoMessage

func (*OssStsTokenResponse) ProtoMessage()

func (*OssStsTokenResponse) ProtoReflect

func (x *OssStsTokenResponse) ProtoReflect() protoreflect.Message

func (*OssStsTokenResponse) Reset

func (x *OssStsTokenResponse) Reset()

func (*OssStsTokenResponse) String

func (x *OssStsTokenResponse) String() string

type PolicyRules

type PolicyRules struct {

	// operation路径
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

响应 - 权限策略

func (*PolicyRules) Descriptor deprecated

func (*PolicyRules) Descriptor() ([]byte, []int)

Deprecated: Use PolicyRules.ProtoReflect.Descriptor instead.

func (*PolicyRules) GetMethod

func (x *PolicyRules) GetMethod() string

func (*PolicyRules) GetPath

func (x *PolicyRules) GetPath() string

func (*PolicyRules) ProtoMessage

func (*PolicyRules) ProtoMessage()

func (*PolicyRules) ProtoReflect

func (x *PolicyRules) ProtoReflect() protoreflect.Message

func (*PolicyRules) Reset

func (x *PolicyRules) Reset()

func (*PolicyRules) String

func (x *PolicyRules) String() string

type Role

type Role struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色信息

func (*Role) Descriptor deprecated

func (*Role) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() string

func (*Role) GetId

func (x *Role) GetId() int64

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type RoleNameReq

type RoleNameReq struct {
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色名称

func (*RoleNameReq) Descriptor deprecated

func (*RoleNameReq) Descriptor() ([]byte, []int)

Deprecated: Use RoleNameReq.ProtoReflect.Descriptor instead.

func (*RoleNameReq) GetRole

func (x *RoleNameReq) GetRole() string

func (*RoleNameReq) ProtoMessage

func (*RoleNameReq) ProtoMessage()

func (*RoleNameReq) ProtoReflect

func (x *RoleNameReq) ProtoReflect() protoreflect.Message

func (*RoleNameReq) Reset

func (x *RoleNameReq) Reset()

func (*RoleNameReq) String

func (x *RoleNameReq) String() string

type SetRoleMenuBtnReq

type SetRoleMenuBtnReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// 按钮id数组
	MenuBtnIds []int64 `protobuf:"varint,3,rep,packed,name=menu_btn_ids,json=menuBtnIds,proto3" json:"menu_btn_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色菜单按钮保存

func (*SetRoleMenuBtnReq) Descriptor deprecated

func (*SetRoleMenuBtnReq) Descriptor() ([]byte, []int)

Deprecated: Use SetRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*SetRoleMenuBtnReq) GetMenuBtnIds

func (x *SetRoleMenuBtnReq) GetMenuBtnIds() []int64

func (*SetRoleMenuBtnReq) GetMenuId

func (x *SetRoleMenuBtnReq) GetMenuId() int64

func (*SetRoleMenuBtnReq) GetRoleId

func (x *SetRoleMenuBtnReq) GetRoleId() int64

func (*SetRoleMenuBtnReq) ProtoMessage

func (*SetRoleMenuBtnReq) ProtoMessage()

func (*SetRoleMenuBtnReq) ProtoReflect

func (x *SetRoleMenuBtnReq) ProtoReflect() protoreflect.Message

func (*SetRoleMenuBtnReq) Reset

func (x *SetRoleMenuBtnReq) Reset()

func (*SetRoleMenuBtnReq) String

func (x *SetRoleMenuBtnReq) String() string

type SetRoleMenuReq

type SetRoleMenuReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 菜单id数组
	MenuIds []int64 `protobuf:"varint,2,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 设置角色菜单

func (*SetRoleMenuReq) Descriptor deprecated

func (*SetRoleMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use SetRoleMenuReq.ProtoReflect.Descriptor instead.

func (*SetRoleMenuReq) GetMenuIds

func (x *SetRoleMenuReq) GetMenuIds() []int64

func (*SetRoleMenuReq) GetRoleId

func (x *SetRoleMenuReq) GetRoleId() int64

func (*SetRoleMenuReq) ProtoMessage

func (*SetRoleMenuReq) ProtoMessage()

func (*SetRoleMenuReq) ProtoReflect

func (x *SetRoleMenuReq) ProtoReflect() protoreflect.Message

func (*SetRoleMenuReq) Reset

func (x *SetRoleMenuReq) Reset()

func (*SetRoleMenuReq) String

func (x *SetRoleMenuReq) String() string

type SetRolesForUserReq

type SetRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 角色数组
	Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

请求 - 设置用户角色

func (*SetRolesForUserReq) Descriptor deprecated

func (*SetRolesForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use SetRolesForUserReq.ProtoReflect.Descriptor instead.

func (*SetRolesForUserReq) GetRoles

func (x *SetRolesForUserReq) GetRoles() []string

func (*SetRolesForUserReq) GetUsername

func (x *SetRolesForUserReq) GetUsername() string

func (*SetRolesForUserReq) ProtoMessage

func (*SetRolesForUserReq) ProtoMessage()

func (*SetRolesForUserReq) ProtoReflect

func (x *SetRolesForUserReq) ProtoReflect() protoreflect.Message

func (*SetRolesForUserReq) Reset

func (x *SetRolesForUserReq) Reset()

func (*SetRolesForUserReq) String

func (x *SetRolesForUserReq) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct{}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAdminServer) ApproveAdministrator

func (UnimplementedAdminServer) ApproveAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)

func (UnimplementedAdminServer) CreateAdministrator

func (UnimplementedAdminServer) CreateApi

func (UnimplementedAdminServer) CreateMenu

func (UnimplementedAdminServer) CreateRole

func (UnimplementedAdminServer) DeleteAdministrator

func (UnimplementedAdminServer) DeleteAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)

func (UnimplementedAdminServer) DeleteApi

func (UnimplementedAdminServer) DeleteMenu

func (UnimplementedAdminServer) DeleteRole

func (UnimplementedAdminServer) DeleteRoleForUser

func (UnimplementedAdminServer) DeleteRolesForUser

func (UnimplementedAdminServer) ForbidAdministrator

func (UnimplementedAdminServer) ForbidAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)

func (UnimplementedAdminServer) GetAdministrator

func (UnimplementedAdminServer) GetAdministrator(context.Context, *IdReq) (*BffAdmin, error)

func (UnimplementedAdminServer) GetAdministratorInfo

func (UnimplementedAdminServer) GetAdministratorInfo(context.Context, *emptypb.Empty) (*BffAdmin, error)

func (UnimplementedAdminServer) GetAdministratorList

func (UnimplementedAdminServer) GetApiAll

func (UnimplementedAdminServer) GetApiList

func (UnimplementedAdminServer) GetApiLogList

func (UnimplementedAdminServer) GetMenuAll

func (UnimplementedAdminServer) GetMenuTree

func (UnimplementedAdminServer) GetOssStsToken

func (UnimplementedAdminServer) GetPolicies

func (UnimplementedAdminServer) GetRoleAll

func (UnimplementedAdminServer) GetRoleMenu

func (UnimplementedAdminServer) GetRoleMenuBtn

func (UnimplementedAdminServer) GetRoleMenuTree

func (UnimplementedAdminServer) GetRolesForUser

func (UnimplementedAdminServer) GetUsersForRole

func (UnimplementedAdminServer) Login

func (UnimplementedAdminServer) LoginOut

func (UnimplementedAdminServer) RecoverAdministrator

func (UnimplementedAdminServer) RecoverAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)

func (UnimplementedAdminServer) SetRoleMenu

func (UnimplementedAdminServer) SetRoleMenuBtn

func (UnimplementedAdminServer) SetRolesForUser

func (UnimplementedAdminServer) UpdateAdministrator

func (UnimplementedAdminServer) UpdateApi

func (UnimplementedAdminServer) UpdateMenu

func (UnimplementedAdminServer) UpdatePolicies

func (UnimplementedAdminServer) UpdateRole

type UnsafeAdminServer

type UnsafeAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.

type UpdateApiReq

type UpdateApiReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API更新

func (*UpdateApiReq) Descriptor deprecated

func (*UpdateApiReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateApiReq.ProtoReflect.Descriptor instead.

func (*UpdateApiReq) GetGroup

func (x *UpdateApiReq) GetGroup() string

func (*UpdateApiReq) GetId

func (x *UpdateApiReq) GetId() int64

func (*UpdateApiReq) GetMethod

func (x *UpdateApiReq) GetMethod() string

func (*UpdateApiReq) GetName

func (x *UpdateApiReq) GetName() string

func (*UpdateApiReq) GetPath

func (x *UpdateApiReq) GetPath() string

func (*UpdateApiReq) ProtoMessage

func (*UpdateApiReq) ProtoMessage()

func (*UpdateApiReq) ProtoReflect

func (x *UpdateApiReq) ProtoReflect() protoreflect.Message

func (*UpdateApiReq) Reset

func (x *UpdateApiReq) Reset()

func (*UpdateApiReq) String

func (x *UpdateApiReq) String() string

type UpdateBffAdminReq

type UpdateBffAdminReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 用户名
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// 密码
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// 手机号
	Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// 昵称
	Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// 头像
	Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// 状态 true正常 false冻结
	Status bool `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
	// 当前角色数组,默认第一个为当前角色
	Role []string `protobuf:"bytes,8,rep,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 管理员更新

func (*UpdateBffAdminReq) Descriptor deprecated

func (*UpdateBffAdminReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateBffAdminReq.ProtoReflect.Descriptor instead.

func (*UpdateBffAdminReq) GetAvatar

func (x *UpdateBffAdminReq) GetAvatar() string

func (*UpdateBffAdminReq) GetId

func (x *UpdateBffAdminReq) GetId() int64

func (*UpdateBffAdminReq) GetMobile

func (x *UpdateBffAdminReq) GetMobile() string

func (*UpdateBffAdminReq) GetNickname

func (x *UpdateBffAdminReq) GetNickname() string

func (*UpdateBffAdminReq) GetPassword

func (x *UpdateBffAdminReq) GetPassword() string

func (*UpdateBffAdminReq) GetRole

func (x *UpdateBffAdminReq) GetRole() []string

func (*UpdateBffAdminReq) GetStatus

func (x *UpdateBffAdminReq) GetStatus() bool

func (*UpdateBffAdminReq) GetUsername

func (x *UpdateBffAdminReq) GetUsername() string

func (*UpdateBffAdminReq) ProtoMessage

func (*UpdateBffAdminReq) ProtoMessage()

func (*UpdateBffAdminReq) ProtoReflect

func (x *UpdateBffAdminReq) ProtoReflect() protoreflect.Message

func (*UpdateBffAdminReq) Reset

func (x *UpdateBffAdminReq) Reset()

func (*UpdateBffAdminReq) String

func (x *UpdateBffAdminReq) String() string

type UpdateMenuReq

type UpdateMenuReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 菜单更新

func (*UpdateMenuReq) Descriptor deprecated

func (*UpdateMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMenuReq.ProtoReflect.Descriptor instead.

func (*UpdateMenuReq) GetComponent

func (x *UpdateMenuReq) GetComponent() string

func (*UpdateMenuReq) GetHidden

func (x *UpdateMenuReq) GetHidden() bool

func (*UpdateMenuReq) GetIcon

func (x *UpdateMenuReq) GetIcon() string

func (*UpdateMenuReq) GetId

func (x *UpdateMenuReq) GetId() int64

func (*UpdateMenuReq) GetMenuBtns

func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn

func (*UpdateMenuReq) GetName

func (x *UpdateMenuReq) GetName() string

func (*UpdateMenuReq) GetParentId

func (x *UpdateMenuReq) GetParentId() int64

func (*UpdateMenuReq) GetParentIds

func (x *UpdateMenuReq) GetParentIds() string

func (*UpdateMenuReq) GetPath

func (x *UpdateMenuReq) GetPath() string

func (*UpdateMenuReq) GetSort

func (x *UpdateMenuReq) GetSort() int64

func (*UpdateMenuReq) GetTitle

func (x *UpdateMenuReq) GetTitle() string

func (*UpdateMenuReq) ProtoMessage

func (*UpdateMenuReq) ProtoMessage()

func (*UpdateMenuReq) ProtoReflect

func (x *UpdateMenuReq) ProtoReflect() protoreflect.Message

func (*UpdateMenuReq) Reset

func (x *UpdateMenuReq) Reset()

func (*UpdateMenuReq) String

func (x *UpdateMenuReq) String() string

type UpdatePoliciesReq

type UpdatePoliciesReq struct {

	// 角色名
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// 权限策略
	PolicyRules []*PolicyRules `protobuf:"bytes,2,rep,name=policyRules,proto3" json:"policyRules,omitempty"`
	// contains filtered or unexported fields
}

请求 - 权限策略更新

func (*UpdatePoliciesReq) Descriptor deprecated

func (*UpdatePoliciesReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePoliciesReq.ProtoReflect.Descriptor instead.

func (*UpdatePoliciesReq) GetPolicyRules

func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules

func (*UpdatePoliciesReq) GetRole

func (x *UpdatePoliciesReq) GetRole() string

func (*UpdatePoliciesReq) ProtoMessage

func (*UpdatePoliciesReq) ProtoMessage()

func (*UpdatePoliciesReq) ProtoReflect

func (x *UpdatePoliciesReq) ProtoReflect() protoreflect.Message

func (*UpdatePoliciesReq) Reset

func (x *UpdatePoliciesReq) Reset()

func (*UpdatePoliciesReq) String

func (x *UpdatePoliciesReq) String() string

type UpdateRoleReq

type UpdateRoleReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色更新

func (*UpdateRoleReq) Descriptor deprecated

func (*UpdateRoleReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRoleReq.ProtoReflect.Descriptor instead.

func (*UpdateRoleReq) GetId

func (x *UpdateRoleReq) GetId() int64

func (*UpdateRoleReq) GetName

func (x *UpdateRoleReq) GetName() string

func (*UpdateRoleReq) ProtoMessage

func (*UpdateRoleReq) ProtoMessage()

func (*UpdateRoleReq) ProtoReflect

func (x *UpdateRoleReq) ProtoReflect() protoreflect.Message

func (*UpdateRoleReq) Reset

func (x *UpdateRoleReq) Reset()

func (*UpdateRoleReq) String

func (x *UpdateRoleReq) String() string

type UploadFileRequest

type UploadFileRequest struct {
	FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
	Content  []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

请求 - 文件上传

func (*UploadFileRequest) Descriptor deprecated

func (*UploadFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.

func (*UploadFileRequest) GetContent

func (x *UploadFileRequest) GetContent() []byte

func (*UploadFileRequest) GetFileName

func (x *UploadFileRequest) GetFileName() string

func (*UploadFileRequest) GetFileType

func (x *UploadFileRequest) GetFileType() string

func (*UploadFileRequest) ProtoMessage

func (*UploadFileRequest) ProtoMessage()

func (*UploadFileRequest) ProtoReflect

func (x *UploadFileRequest) ProtoReflect() protoreflect.Message

func (*UploadFileRequest) Reset

func (x *UploadFileRequest) Reset()

func (*UploadFileRequest) String

func (x *UploadFileRequest) String() string

type UploadFileResponse

type UploadFileResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

响应 - 文件上传url

func (*UploadFileResponse) Descriptor deprecated

func (*UploadFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.

func (*UploadFileResponse) GetUrl

func (x *UploadFileResponse) GetUrl() string

func (*UploadFileResponse) ProtoMessage

func (*UploadFileResponse) ProtoMessage()

func (*UploadFileResponse) ProtoReflect

func (x *UploadFileResponse) ProtoReflect() protoreflect.Message

func (*UploadFileResponse) Reset

func (x *UploadFileResponse) Reset()

func (*UploadFileResponse) String

func (x *UploadFileResponse) String() string

type Wallet

type Wallet struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 用户id
	UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// 状态
	Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 删除时间
	DeletedAt string `protobuf:"bytes,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// 余额
	Balance float32 `protobuf:"fixed32,7,opt,name=balance,proto3" json:"balance,omitempty"`
	// 冻结金额
	FrozenAmount float32 `protobuf:"fixed32,8,opt,name=frozen_amount,json=frozenAmount,proto3" json:"frozen_amount,omitempty"`
	// contains filtered or unexported fields
}

响应 - 钱包信息

func (*Wallet) Descriptor deprecated

func (*Wallet) Descriptor() ([]byte, []int)

Deprecated: Use Wallet.ProtoReflect.Descriptor instead.

func (*Wallet) GetBalance

func (x *Wallet) GetBalance() float32

func (*Wallet) GetCreatedAt

func (x *Wallet) GetCreatedAt() string

func (*Wallet) GetDeletedAt

func (x *Wallet) GetDeletedAt() string

func (*Wallet) GetFrozenAmount

func (x *Wallet) GetFrozenAmount() float32

func (*Wallet) GetId

func (x *Wallet) GetId() int64

func (*Wallet) GetStatus

func (x *Wallet) GetStatus() bool

func (*Wallet) GetUpdatedAt

func (x *Wallet) GetUpdatedAt() string

func (*Wallet) GetUserId

func (x *Wallet) GetUserId() int64

func (*Wallet) ProtoMessage

func (*Wallet) ProtoMessage()

func (*Wallet) ProtoReflect

func (x *Wallet) ProtoReflect() protoreflect.Message

func (*Wallet) Reset

func (x *Wallet) Reset()

func (*Wallet) String

func (x *Wallet) String() string

Jump to

Keyboard shortcuts

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