leaves

package
v0.0.0-...-288c4e3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLeave

func AddLeave(upd Leaves) error

func AddLeavesApprover

func AddLeavesApprover(upd LeavesApprover) error

func ChangeLeaveResult

func ChangeLeaveResult(id int64, result int) error

func ChangeLeaveStatus

func ChangeLeaveStatus(id int64, status int) error

func CheckLeaveApprover

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

检测是否已经审批

func CountLeave

func CountLeave(condArr map[string]string) int64

func CountLeaveApproval

func CountLeaveApproval(condArr map[string]string) int64

func DeleteLeave

func DeleteLeave(id int64) error

func ListLeaveApproverProcessHtml

func ListLeaveApproverProcessHtml(leaveid int64) string

func UpdateLeave

func UpdateLeave(id int64, upd Leaves) error

func UpdateLeavesApprover

func UpdateLeavesApprover(id int64, upd LeavesApprover) error

Types

type LeaveApproverProcess

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

func ListLeaveApproverProcess

func ListLeaveApproverProcess(leaveid int64) (num int64, err error, user []LeaveApproverProcess)

type Leaves

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

func GetLeave

func GetLeave(id int64) (Leaves, error)

func ListLeave

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

func ListLeaveApproval

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

待审批

func (*Leaves) TableName

func (this *Leaves) TableName() string

type LeavesApprover

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

func (*LeavesApprover) TableName

func (this *LeavesApprover) TableName() string

type TmpLeaveCount

type TmpLeaveCount struct {
	Num int64
}

Jump to

Keyboard shortcuts

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