user

package
v0.0.0-...-e1091f4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg Config, ac *apiclient.Client) *userClient

Types

type Config

type Config struct {
	BaseURL string
}

type DeleteUser

type DeleteUser struct {
	ID      string `json:"id,omitempty" binding:"required" db:"id"`
	Version int64  `json:"version" binding:"required" db:"version"`
}

type User

type User struct {
	ID        string    `json:"id,omitempty" db:"id"`
	OrgID     string    `json:"org_id,omitempty" db:"org_id"`
	Name      string    `json:"name,omitempty" binding:"required" db:"name"`
	Email     string    `json:"email,omitempty" binding:"required" db:"email"`
	IsSystem  bool      `json:"is_system" db:"is_system"`
	IsAdmin   bool      `json:"is_admin" db:"is_admin"`
	IsActive  bool      `json:"is_active" db:"is_active"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
	CreatedBy string    `json:"created_by,omitempty" db:"created_by"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
	UpdatedBy string    `json:"updated_by,omitempty" db:"updated_by"`
	Version   int64     `json:"version" db:"version"`
}

Jump to

Keyboard shortcuts

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