dto

package
v0.0.0-...-d595cb9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppendPermissionPolicyRequest

type AppendPermissionPolicyRequest struct {
	PolicyID      int64   `json:"policy_id"`
	PermissionIDs []int64 `json:"permission_ids"`
}

type BindingPolicyRoleRequest

type BindingPolicyRoleRequest struct {
	RoleID    int64   `json:"role_id"`
	PolicyIDs []int64 `json:"policy_ids"`
}

BindingPolicyRoleRequest

type BindingRoleUserRequest

type BindingRoleUserRequest struct {
	UserID  int64   `json:"user_id"`
	RoleIDs []int64 `json:"role_ids"`
}

CreateUserRequest

type CreatePolicyRequest

type CreatePolicyRequest struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

CreatePolicyRequest

type CreateRoleRequest

type CreateRoleRequest struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

CreateRoleRequest

type CreateRoleResponse

type CreateRoleResponse struct {
}

CreateRoleResponse

type CreateUserRequest

type CreateUserRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

CreateUserRequest

type CreateUserResponse

type CreateUserResponse struct {
	Meta Meta `json:"meta"`
}

CreateUserResponse

type DeleteUserRequest

type DeleteUserRequest struct {
	UserID int64 `json:"user_id"`
}

DeleteUserRequest

type DeleteUserResponse

type DeleteUserResponse struct {
	Meta Meta `json:"meta"`
}

DeleteUserResponse

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

LoginRequest

type LoginResponse

type LoginResponse struct {
	Meta Meta `json:"meta"`
}

type Meta

type Meta struct {
	Code    int64  `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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