util

package
v0.0.0-...-830e4ae Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ACT_TYPE_AND = "and"
View Source
const ACT_TYPE_OR = "or"
View Source
const APPROVE_TYPE_LIST = 1
View Source
const APPROVE_TYPE_MANAGER = 4
View Source
const APPROVE_TYPE_MANUAL = 2
View Source
const DEAL_RESULT_NG = "ng"
View Source
const DEAL_RESULT_OK = "ok"
View Source
const NO = "no"
View Source
const YES = "yes"

Variables

View Source
var Conf = Config{}
View Source
var Db *gorm.DB

Functions

func GetIndex

func GetIndex(num int64) (res []int)

func GetIntValue

func GetIntValue(num int) (res []int)

func GetProcess

func GetProcess(id string) *model.Process

func IsStringIn

func IsStringIn(target string, str_array []string) bool

func NextId

func NextId() string

func PutProcess

func PutProcess(id string, process *model.Process)

Types

type Config

type Config struct {
	Port string
	Dsn  string
}

Jump to

Keyboard shortcuts

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