migration

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	gorm.Model

	Name  string `json:"name"`
	Value string `json:"value"`

	StartAt  time.Time
	EndAt    time.Time
	ExpireAt time.Time
}

Role struct

func (*Role) ConvertToJSON

func (r *Role) ConvertToJSON() (string, error)

ConvertToJSON convert object to json

func (*Role) LoadFromJSON

func (r *Role) LoadFromJSON(data []byte) error

LoadFromJSON update object from json

Jump to

Keyboard shortcuts

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