model

package
v0.0.0-...-a237221 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CO1 = "Apple"
	CO2 = "Google"
	CO3 = "Microsoft"
	CO4 = "Amazon"
)
View Source
const (
	COLLECTION_KEY = "email"
	ADMIN          = "admin"
)

Variables

This section is empty.

Functions

func GetCustomOrgName

func GetCustomOrgName(org string) string

func GetTime

func GetTime(timestamp *timestamp.Timestamp) string

func IsAdmin

func IsAdmin(role string) bool

Types

type HistoryData

type HistoryData struct {
	EmailKey        string `json:"emailKey"`
	TxID            string `json:"txId"`
	QueryCreator    string `json:"creator"`
	Query           string `json:"query"`
	QueryCreatorOrg string `json:"queryCreatorOrg"`
	Time            string `json:"time"`
	Remarks         string `json:"remarks"`
}

type User

type User struct {
	ID          string `json:"id"`
	Email       string `json:"email"`
	Name        string `json:"name"`
	Mobile      string `json:"mobile"`
	Age         string `json:"age"`
	Salary      string `json:"salary"`
	Owner       string `json:"owner"`
	ShareAccess string `json:"shareAccess"`
	Role        string `json:"role"`
	Time        string `json:"time"`
	Remarks     string `json:"remarks"`
}

Jump to

Keyboard shortcuts

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