ToolsHolidaySeason

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsWork

func CheckIsWork(args *ArgsCheckIsWork) (b bool)

CheckIsWork 检查指定的时间是否上班?

func Delete

func Delete(args *ArgsDelete) (err error)

func Run

func Run()

Run 维护包

func Set

func Set(args *ArgsSet) (err error)

Types

type ArgsCheckIsWork

type ArgsCheckIsWork struct {
	//对应的日期
	DateAt time.Time `db:"date_at" json:"dateAt"`
}

ArgsCheckIsWork 检查指定的时间是否上班?参数

type ArgsDelete

type ArgsDelete struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

删除记录

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//查询范围
	DateMin time.Time `json:"dateMin" check:"isoTime"`
	DateMax time.Time `json:"dateMax" check:"isoTime"`
	//是否包含上班?
	HaveWork bool `json:"haveWork" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetList 获取列表参数

type ArgsSet

type ArgsSet struct {
	//对应的日期
	DateAt time.Time `db:"date_at" json:"dateAt" check:"isoTime"`
	//节假日类型
	// 0 工作日、1 周末、2 节日、3 调休
	Status int `db:"status" json:"status"`
	//是否房价
	IsHoliday bool `db:"is_holiday" json:"isHoliday"`
	//名称
	// eg: 周二
	Name string `db:"name" json:"name" check:"des" min:"1" max:"100"`
	//薪资倍数
	Wage int `db:"wage" json:"wage"`
	//是否强制修改
	// 如果启动,则只认准修改数据,将不同步API
	IsForce bool `db:"is_force" json:"isForce"`
}

设置指定天的记录

type FieldsHolidaySeason

type FieldsHolidaySeason struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//对应的日期
	DateAt time.Time `db:"date_at" json:"dateAt"`
	//节假日类型
	// 0 工作日、1 周末、2 节日、3 调休
	Status int `db:"status" json:"status"`
	//是否房价
	IsHoliday bool `db:"is_holiday" json:"isHoliday"`
	//名称
	// eg: 周二
	Name string `db:"name" json:"name"`
	//薪资倍数
	Wage int `db:"wage" json:"wage"`
	//是否强制修改
	// 如果启动,则只认准修改数据,将不同步API
	IsForce bool `db:"is_force" json:"isForce"`
}

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsHolidaySeason, dataCount int64, err error)

GetList 获取列表

Jump to

Keyboard shortcuts

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