org

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 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) *orgClient

Types

type Config

type Config struct {
	BaseURL string
}

type DeleteOrg

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

type Org

type Org struct {
	ID        string    `json:"id,omitempty" db:"id"`
	Name      string    `json:"name,omitempty" binding:"required" db:"name"`
	Desc      string    `json:"desc,omitempty" binding:"required" db:"description"`
	IsSystem  bool      `json:"is_system" db:"is_system"`
	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