goouts

package
v0.0.0-...-831440f Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGoout

func AddGoout(upd Goouts) error

func AddGooutsApprover

func AddGooutsApprover(upd GooutsApprover) error

func ChangeGooutResult

func ChangeGooutResult(id int64, result int) error

func ChangeGooutStatus

func ChangeGooutStatus(id int64, status int) error

func CheckGooutApprover

func CheckGooutApprover(id, userId int64) (int64, int)

检测是否已经审批

func CountGoout

func CountGoout(condArr map[string]string) int64

func CountGooutApproval

func CountGooutApproval(condArr map[string]string) int64

func DeleteGoout

func DeleteGoout(id int64) error

func ListGooutApproverProcessHtml

func ListGooutApproverProcessHtml(gooutid int64) string

func UpdateGoout

func UpdateGoout(id int64, upd Goouts) error

func UpdateGooutsApprover

func UpdateGooutsApprover(id int64, upd GooutsApprover) error

Types

type GooutApproverProcess

type GooutApproverProcess struct {
	Userid   int64
	Realname string
	Avatar   string
	Position string
	Status   int
	Summary  string
	Changed  int64
}

func ListGooutApproverProcess

func ListGooutApproverProcess(gooutid int64) (num int64, err error, user []GooutApproverProcess)

type Goouts

type Goouts struct {
	Id          int64 `orm:"pk;column(gooutid);"`
	Userid      int64
	Started     int64
	Ended       int64
	Hours       float64
	Reason      string
	Picture     string
	Result      int
	Status      int
	Approverids string
	Created     int64
	Changed     int64
}

func GetGoout

func GetGoout(id int64) (Goouts, error)

func ListGoout

func ListGoout(condArr map[string]string, page int, offset int) (num int64, err error, ops []Goouts)

func ListGooutApproval

func ListGooutApproval(condArr map[string]string, page int, offset int) (num int64, err error, ops []Goouts)

待审批

func (*Goouts) TableName

func (this *Goouts) TableName() string

type GooutsApprover

type GooutsApprover struct {
	Id      int64 `orm:"pk;column(approverid);"`
	Gooutid int64
	Userid  int64
	Summary string
	Status  int
	Created int64
	Changed int64
}

func (*GooutsApprover) TableName

func (this *GooutsApprover) TableName() string

type TmpGooutCount

type TmpGooutCount struct {
	Num int64
}

Jump to

Keyboard shortcuts

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