Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFile = "./config/config.yaml"
Variables ¶
View Source
var ( CDCLASS = []string{"合计", "员工总合计", "小计"} CUTCLASS = []string{"1001", "1002", "1003", "1004", "1005", "1011", "1012", "1013", "1014", "1015", "3008", "3009", "4001"} )
View Source
var TOKEN = Token{}
Functions ¶
func Async ¶
func Async(times int, FuncName func())
Async
@Description: 定时器 开始执行一次,后根据延迟传入的秒数循环执行 @param times @param FuncName
Types ¶
type Config ¶
type Config struct {
BoKa KaConfig `yaml:"boka" mapstructure:"boka" json:"boka"`
}
var (
CONFIG *Config
)
type Items ¶
type Items struct { UserID string // 会员卡号 UserName string // 会员名字 CardType string // 卡类型 BillDate string // 消费日期 ItemName string // 项目名字 ItemID string // 项目 ID ItemAmt float64 // 项目总金额 ItemAmt3 float64 // 实际分得金额 PayType string // 支付方式 PayCode string // 支付方式ID EmpName string // 员工姓名 EmpID string // 员工ID EmpMoney float64 // 工资 EmpType string // 员工职位 Times string // 次数 Remark string // 备忘 TypeID string // TypeIds["充值"] == 1 课程=2 消疗=3 项目=4 剪发=5 }
type KaConfig ¶
type KaConfig struct { CustId string `json:"custId" yaml:"custId" mapstructure:"custId" ` CompId string `json:"compId" yaml:"compId" mapstructure:"compId" ` UserName string `json:"userName" yaml:"userName" mapstructure:"userName" ` PassWord string `json:"passWord" yaml:"passWord" mapstructure:"passWord" ` Source string `json:"source" yaml:"source" mapstructure:"source" ` Sec int64 `mapstructure:"sec" json:"sec" yaml:"sec"` }
type Token ¶
func (*Token) RequestToken ¶
func (T *Token) RequestToken()
type UserData ¶
func (*UserData) GetPerformanceData ¶
GetPerformanceData
@Description: @param Params startUser, endUser, startDate endDate
func (*UserData) GetUserType2 ¶
func (U *UserData) GetUserType2()
GetUserType2
@Description: 获取所有的员工 @receiver U
Click to show internal directories.
Click to hide internal directories.