models

package
v0.0.0-...-190c8eb Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUseMinute

func SetUseMinute(useMinute int, ID int)

SetUseMinute 設定休假花費時間

func SetUseMinuteToZero

func SetUseMinuteToZero()

SetUseMinuteToZero 將使用時間設為零

Types

type Holiday

type Holiday struct {
	ID              int `gorm:"AUTO_INCREMENT"`
	Date            time.Time
	Name            string
	IsHoliday       int
	HolidayCategory string
	Description     string
}

Holiday 假期資料表

func GetHoliday

func GetHoliday() []*Holiday

GetHoliday 取得休假日資料

type Leaves

type Leaves struct {
	ID        int
	Startdate time.Time
	Enddate   time.Time
	Starttime string
	Endtime   string
}

Leaves 休假申請物件

func GetLeaveHistory

func GetLeaveHistory() []*Leaves

GetLeaveHistory 取得假期日誌

Jump to

Keyboard shortcuts

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