Documentation ¶
Index ¶
- Constants
- Variables
- type Appeal
- type AppealSearchCond
- type AppealSearchData
- type AppealSearchRes
- type AuditLog
- type BusinessAttr
- type Chall
- type ChallRes
- type ChallSearchCommonData
- type ChallSearchCommonRes
- type ChallSearchParams
- type ChallSearchRes
- type Event
- type GroupRes
- type GroupSearchCommonCond
- type LogRes
- type Pager
- type SearchChall
- type SearchGroup
- type SearchParams
Constants ¶
View Source
const ( AuditStatePending = 0 AuditStateEffective = 1 AuditStateInvalid = 2 TransferStatePendingSystemNotReply = 0 TransferStatePendingSystemReply = 1 TransferStateAdminReplyReaded = 2 TransferStateAdminClosed = 3 TransferStateUserResolved = 4 TransferStateAutoClosedExpire = 5 TransferStateAdminReplyNotReaded = 6 TransferStateUserClosed = 7 TransferStatePassClosed = 8 AssignStateNotDispatch = 0 AssignStatePushed = 1 AssignStatePoped = 2 AssignStateReAudit = 3 )
appeal state
View Source
const ( // EventAdminReply 管理员回复 EventAdminReply = 1 // EventAdminNote 管理员回复并记录 EventAdminNote = 2 // EventUserReply 用户回复 EventUserReply = 3 // EventSystem 系统回复 EventSystem = 4 )
consts for workflow event
View Source
const (
// QueueState .
QueueState = 18
)
Variables ¶
View Source
var ( // ListBefore . ListBefore = 0 // 入队列前 // ListAfter . ListAfter = 1 // 出队列后 // ListIng . ListIng = 2 // 队列中 // SysAssignType . SysAssignType = 1 // 系统指派类型 // ADealType . ADealType = 0 // 审核处理类型 // FDealType . FDealType = 1 // 反馈处理类型 // PDealType . PDealType = 2 // 工作台处理类型 // FListBeforeStates . FListBeforeStates = "2" // 反馈入队列前state状态 // FListBeforeBusinessStates . FListBeforeBusinessStates = "1" // 反馈入队列前business_state状态 // AListBeforeStates . AListBeforeStates = "0" // 审核入队列前state状态 // FListAfterStates . FListAfterStates = "2" // 反馈入队列后state状态 // FListAfterBusinessStates . FListAfterBusinessStates = "1" // 反馈入队列后business_state状态 // AListAfterStates . AListAfterStates = "15" // 审核入队列后state状态 )
Functions ¶
This section is empty.
Types ¶
type Appeal ¶
type Appeal struct { ApID int64 `json:"id" gorm:"column:id"` Rid int8 `json:"rid" gorm:"column:rid"` Tid int32 `json:"tid" gorm:"column:tid"` Bid int8 `json:"bid" gorm:"column:bid"` Mid int64 `json:"mid" gorm:"column:mid"` Oid int64 `json:"oid" gorm:"column:oid"` AuditState int8 `json:"audit_state" gorm:"column:audit_state"` TransferState int8 `json:"transfer_state" gorm:"column:transfer_state"` AssignState int8 `json:"assign_state" gorm:"column:assign_state"` Weight int64 `json:"weight" gorm:"column:weight"` AuditAdmin int64 `json:"audit_admin" gorm:"column:audit_admin"` TransferAdmin int64 `json:"transfer_admin" gorm:"column:transfer_admin"` DTime time.Time `json:"dtime" gorm:"column:dtime"` TTime time.Time `json:"ttime" gorm:"column:ttime"` CTime time.Time `json:"ctime" gorm:"column:ctime"` MTime time.Time `json:"mtime" gorm:"column:mtime"` }
Appeal orm struct of table workflow_appeal
type AppealSearchCond ¶
type AppealSearchCond struct { Fields []string IDs []int64 Rids []int32 Tids []int64 Bid []int Mids []int64 Oids []int64 AuditState []int8 TransferState []int8 AssignState []int8 Weight int64 Degree []int8 AuditAdmin []int32 TransferAdmin []int32 TypeIDs []int64 // workflow_business table KW []string KWFields []string DTimeFrom string DTimeTo string TTimeFrom string TTimeTo string CTimeFrom string CTimeTo string MTimeFrom string MTimeTo string PN int PS int Order string Sort string }
AppealSearchCond .
type AppealSearchData ¶
type AppealSearchData struct { ID int64 `json:"id"` Bid int32 `json:"bid"` Tid int32 `json:"tid"` Mid int64 `json:"mid"` Oid int64 `json:"oid"` AuditState int8 `json:"audit_state"` TransferState int8 `json:"transfer_state"` AssignState int8 `json:"assign_state"` TransferAdmin int `json:"transfer_adminid"` Weight int64 `json:"weight"` }
AppealSearchData .
type AppealSearchRes ¶
type AppealSearchRes struct { Page *page `json:"page"` Result []*AppealSearchData `json:"result"` }
AppealSearchRes .
type AuditLog ¶
type AuditLog struct { Order string `json:"order"` Sort string `json:"sort"` Page *Pager `json:"page"` Result []*LogRes `json:"result"` }
AuditLog .
type BusinessAttr ¶
type BusinessAttr struct { ID int64 `json:"id"` Bid int `json:"bid"` Name string `json:"name"` DealType int `json:"deal_type"` ExpireTime int `json:"expire_time"` AssignType int `json:"assign_type"` AssignMax int `json:"assign_max"` GroupType int `json:"group_type"` }
BusinessAttr .
type Chall ¶
type Chall struct { ID int64 `json:"id"` Business int64 `json:"business"` DispatchState int `json:"dispatch_state"` DispatchTime time.Time `json:"dispatch_time"` }
Chall .
type ChallRes ¶
type ChallRes struct { ID int64 `json:"id"` GID int64 `json:"gid"` MID int64 `json:"mid"` OID int64 `json:"oid"` }
ChallRes .
type ChallSearchCommonData ¶
type ChallSearchCommonData struct {
ID int64 `json:"id"`
}
ChallSearchCommonData .
type ChallSearchCommonRes ¶
type ChallSearchCommonRes struct { Page *page `json:"page"` Result []*ChallSearchCommonData `json:"result"` }
ChallSearchCommonRes .
type ChallSearchParams ¶
type ChallSearchParams struct { Business string States string BusinessStates string AssigneeAdminIDs string AssigneeAdminIDsNot string MtimeTo string PN int64 PS int64 Order string Sort string }
ChallSearchParams .
func (*ChallSearchParams) Serialize ¶
func (cp *ChallSearchParams) Serialize() (val url.Values)
Serialize .
type ChallSearchRes ¶
type ChallSearchRes struct { Code int `json:"code"` Message string `json:"message"` TTL int32 `json:"ttl"` Data struct { Order string `json:"order"` Sort string `json:"sort"` Page struct { Num int64 `json:"num"` Size int64 `json:"size"` Total int64 `json:"total"` } `json:"page"` Result []struct { ID int64 `json:"id"` } `json:"result"` } `json:"data"` }
ChallSearchRes .
type Event ¶
type Event struct { Eid int64 `json:"eid" gorm:"column:id"` Cid int64 `json:"cid" gorm:"column:cid"` AdminID int64 `json:"adminid" gorm:"column:adminid"` Content string `json:"content" gorm:"column:content"` Attachments string `json:"attachments" gorm:"column:attachments"` Event int8 `json:"event" gorm:"column:event"` CTime xtime.Time `json:"ctime" gorm:"column:ctime"` MTime xtime.Time `json:"mtime" gorm:"column:mtime"` Admin string `json:"admin" gorm:"-"` }
Event model is the model for challenge changes
type GroupSearchCommonCond ¶
type GroupSearchCommonCond struct { Fields []string Business int8 IDs []int64 Oids []string Tids []int64 States []int8 Mids []int64 Rounds []int64 TypeIDs []int64 FID []int64 RID []int8 EID []int64 TagRounds []int64 ReportMID []int64 // report_mid AuthorMID []int64 // mid KW []string KWFields []string CTimeFrom string CTimeTo string PN int64 PS int64 Order string Sort string }
GroupSearchCommonCond is the common condition model to send group search request
type SearchChall ¶
type SearchChall struct { Order string `json:"order"` Sort string `json:"sort"` Page *Pager `json:"page"` Result []*ChallRes `json:"result"` }
SearchChall .
Click to show internal directories.
Click to hide internal directories.