transformer

package
v0.0.0-...-054b70b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: GPL-3.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 Permission

type Permission struct {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	DisplayName string `json:"display_name"`
	Description string `json:"description"`
	Act         string `json:"act"`
	CreatedAt   string `json:"created_at"`
}

type Role

type Role struct {
	Id          int           `json:"id"`
	Name        string        `json:"name"`
	DisplayName string        `json:"display_name"`
	Description string        `json:"description"`
	Perms       []*Permission `json:"perms"`
	CreatedAt   string        `json:"created_at"`
}

type User

type User struct {
	Id        int     `json:"id"`
	Name      string  `json:"name"`
	Username  string  `json:"username"`
	Intro     string  `json:"introduction"`
	Avatar    string  `json:"avatar"`
	Roles     []*Role `json:"roles"`
	RoleIds   []int   `json:"role_ids"`
	CreatedAt string  `json:"created_at"`
}

Jump to

Keyboard shortcuts

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