Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ByPiece 按件数 ByPiece = iota // ByMoney 按金额 ByMoney )
View Source
const ( // CheckSingle 考核单项 CheckSingle = iota // CheckTwice 考核两项 CheckTwice )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compose ¶
type Compose struct { ID int `orm:"id key auto" view:"view,lite"` Name string `orm:"name" view:"view,lite"` // 1 H1 Simple `orm:"simple" view:"view,lite"` // 3 R3 *Simple `orm:"ptrSimple" view:"view,lite"` // 2 H2 []Simple `orm:"simpleArray" view:"view,lite"` // 4 R4 []*Simple `orm:"simplePtrArray" view:"view,lite"` PR4 *[]Simple `orm:"ptrSimpleArray" view:"view,lite"` Reference Reference `orm:"reference" view:"view,lite"` PtrReference *Reference `orm:"ptrReference" view:"view,lite"` RefArray []Reference `orm:"refArray" view:"view,lite"` RefPtrArray []*Reference `orm:"refPtrArray" view:"view,lite"` PtrRefArray []*Reference `orm:"ptrRefArray" view:"view,lite"` PtrCompose *Compose `orm:"ptrCompose" view:"view,lite"` }
type ExtUnit ¶
type ExtUnit struct { ID int `orm:"id key auto" view:"view,lite"` Unit *Unit `orm:"unit" view:"view,lite"` }
ExtUnit ExtUnit
type ExtUnitList ¶
type ExtUnitList struct { ID int `orm:"id key auto" view:"view,lite"` Unit Unit `orm:"unit" view:"view,lite"` UnitList []Unit `orm:"unitlist" view:"view,lite"` }
ExtUnitList ExtUnitList
type Goal ¶
type Goal struct { ID int `json:"id" orm:"id key auto" view:"view,lite"` // ID Type int `json:"type" orm:"type" view:"view,lite"` Value float32 `json:"value" orm:"value" view:"view,lite"` }
Goal 考核目标
type Group ¶
type Group struct { ID int `orm:"gid key auto" view:"view,lite"` Name string `orm:"name" view:"view,lite"` Users *[]*User `orm:"users" view:"view,lite"` Parent *Group `orm:"parent" view:"view,lite"` }
Group Group
type KPI ¶
type KPI struct { ID int `json:"id" orm:"id key auto" view:"view,lite"` // ID Title string `json:"title" orm:"title" view:"view,lite"` // 名称 JoinValue Goal `json:"joinValue" orm:"joinValue" view:"view,lite"` // 加盟目标 PerMonthValue Goal `json:"perMonthValue" orm:"perMonthValue" view:"view,lite"` // 每月目标 SpecialValue SpecialGoal `json:"specialValue" orm:"specialValue" view:"view,lite"` // 特殊地区或产品目标 Default bool `json:"default" orm:"default" view:"view,lite"` }
KPI 代理商考核指标
type Reference ¶
type Reference struct { ID int `orm:"id key auto" view:"view,lite"` Name string `orm:"name" view:"view,lite"` FValue *float32 `orm:"value" view:"view,lite"` F64 float64 `orm:"f64" view:"view,lite"` TimeStamp *time.Time `orm:"ts" view:"view,lite"` Flag *bool `orm:"flag" view:"view,lite"` IArray []int `orm:"iArray" view:"view,lite"` FArray []float32 `orm:"fArray" view:"view,lite"` StrArray []string `orm:"strArray" view:"view,lite"` BArray []bool `orm:"bArray" view:"view,lite"` PtrArray *[]string `orm:"ptrArray" view:"view,lite"` StrPtrArray []*string `orm:"strPtrArray" view:"view,lite"` PtrStrArray *[]*string `orm:"ptrStrArray" view:"view,lite"` }
type RewardPolicy ¶
type RewardPolicy struct { ID int `json:"id" orm:"id key auto" view:"view,lite"` Name string `json:"name" orm:"name" view:"view,lite"` Description string `json:"description" orm:"description" view:"view,lite"` ValueItem []ValueItem `json:"item" orm:"item" view:"view,lite"` ValueScope ValueScope `json:"scope" orm:"scope" view:"view,lite"` Status *Status `json:"status" orm:"status" view:"view,lite"` Creater int `json:"creater" orm:"creater" view:"view,lite"` UpdateTime int64 `json:"updateTime" orm:"updateTime" view:"view,lite"` Namespace string `json:"namespace" orm:"namespace" view:"view,lite"` }
type Simple ¶
type Simple struct { ID int `orm:"id key auto" view:"view,lite"` I8 int8 `orm:"i8" view:"view,lite"` I16 int16 `orm:"i16" view:"view,lite"` I32 int32 `orm:"i32" view:"view,lite"` I64 uint64 `orm:"i64" view:"view,lite"` Name string `orm:"name" view:"view,lite"` Value float32 `orm:"value" view:"view,lite"` F64 float64 `orm:"f64" view:"view,lite"` TimeStamp time.Time `orm:"ts dateTime" view:"view,lite"` Flag bool `orm:"flag" view:"view,lite"` }
type SpecialGoal ¶
type SpecialGoal struct { ID int `json:"id" orm:"id key auto" view:"view,lite"` // ID CheckDistrict []string `json:"checkDistrict" orm:"checkDistrict" view:"view,lite"` CheckProduct []string `json:"checkProduct" orm:"checkProduct" view:"view,lite"` CheckType int `json:"checkType" orm:"checkType" view:"view,lite"` CheckValue Goal `json:"checkValue" orm:"checkValue" view:"view,lite"` }
SpecialGoal 特殊目标
type Status ¶
type Status struct { ID int `orm:"id key auto" view:"view,lite"` Value int `orm:"value" view:"view,lite"` }
Status status
type System ¶
type System struct { ID int `orm:"id key auto" view:"view,lite"` Name string `orm:"name" view:"view,lite"` Users *[]User `orm:"users" view:"view,lite"` Tags []string `orm:"tags" view:"view,lite"` }
System System
type Unit ¶
type Unit struct { ID int `orm:"id key auto" view:"view,lite"` I8 int8 `orm:"i8" view:"view,lite"` I16 int16 `orm:"i16" view:"view,lite"` I32 int32 `orm:"i32" view:"view,lite"` I64 uint64 `orm:"i64" view:"view,lite"` Name string `orm:"name" view:"view,lite"` Value float32 `orm:"value" view:"view,lite"` F64 float64 `orm:"f64" view:"view,lite"` TimeStamp time.Time `orm:"ts" view:"view,lite"` Flag bool `orm:"flag" view:"view,lite"` IArray []int `orm:"iArray" view:"view,lite"` FArray []float32 `orm:"fArray" view:"view,lite"` StrArray []string `orm:"strArray" view:"view,lite"` }
Unit 单元信息
type User ¶
type User struct { ID int `orm:"uid key auto" view:"view,lite"` Name string `orm:"name" view:"view,lite"` EMail string `orm:"email" view:"view,lite"` Status *Status `orm:"status" view:"view,lite"` Group []*Group `orm:"group" view:"view,lite"` }
User User
type ValueScope ¶
Click to show internal directories.
Click to hide internal directories.