search

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Archive        = 3
	Workflow       = 11
	LogAuditAction = "log_audit"
)

business id const

View Source
const (
	GroupSrhComID = "workflow_group_common"
	ChallSrhComID = "workflow_chall_common"
)

search appid

Variables

This section is empty.

Functions

This section is empty.

Types

type ArcSearchResult

type ArcSearchResult struct {
	Code    int32  `json:"code"`
	Message string `json:"message"`
	TTL     int32  `json:"ttl"`

	Data struct {
		Page   *model.Page             `json:"page"`
		Result []GroupSearchCommonData `json:"result"`
	} `json:"data"`
}

ArcSearchResult is the model to parse search archive appeal result

type ArchiveAuditLogExtra

type ArchiveAuditLogExtra struct {
	Content struct {
		ID      int64  `json:"id"` //oid
		UID     int64  `json:"uid"`
		UName   string `json:"uname"`
		Note    string `json:"note"`
		Content string `json:"content"`
	} `json:"content"`
	Diff string `json:"diff"`
}

ArchiveAuditLogExtra archive audit log extra message

type AuditLogGroupSearchCond

type AuditLogGroupSearchCond struct {
	Group      []string
	UNames     []string
	Uids       []int64
	Businesses []int64
	Type       []int64
	Oids       []int64
	Actions    []string
	CTimeFrom  string
	CTimeTo    string

	Int0     []int64
	Int0From int64
	Int0To   int64
	Int1     []int64
	Int1From int64
	Int1To   int64
	Int2     []int64
	Int2From int64
	Int2To   int64

	Str0 string
	Str1 string
	Str2 string

	PN    int64
	PS    int64
	Order string
	Sort  string
}

AuditLogGroupSearchCond is the common condition model to send challenge search request

func (*AuditLogGroupSearchCond) Query

func (alsc *AuditLogGroupSearchCond) Query() (uv url.Values)

Query make query for AuditLogGroupSearchCond

type AuditLogSearchCommonResult

type AuditLogSearchCommonResult struct {
	Page   *model.Page  `json:"page"`
	Result []*ReportLog `json:"result"`
}

AuditLogSearchCommonResult .

type AuditLogSearchResult

type AuditLogSearchResult struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	TTL     int32  `json:"ttl"`

	Data struct {
		Order  string     `json:"order"`
		Sort   string     `json:"sort"`
		Page   model.Page `json:"page"`
		Result []struct {
			Action    string `json:"action"`
			Business  int64  `json:"business"`
			CTime     string `json:"ctime"`
			ExtraData string `json:"extra_data"`
			Str0      string `json:"str_0"`
			Str1      string `json:"str_1"`
			Str2      string `json:"str_2"`
			Oid       int64  `json:"oid"`
			Type      int64  `json:"type"`
			UID       int64  `json:"uid"`
			UName     string `json:"uname"`
		} `json:"result"`
	} `json:"data"`
}

AuditLogSearchResult is the model to parse search challenge common result

type AuditReportSearchCond

type AuditReportSearchCond struct {
	AppID         string    `json:"app_id"`
	Fields        []string  `json:"fields"`
	IndexTimeType string    `json:"index_time_type"`
	IndexTimeFrom time.Time `json:"index_time_from"`
	IndexTimeEnd  time.Time `json:"index_time_end"`
	Business      int       `json:"business"`
	UName         string    `json:"uname"`
	UID           []int64   `json:"uid"`
	Oid           []int64   `json:"oid"`
	Type          []int     `json:"type"`
	Action        string    `json:"action"`
	CTime         string    `json:"ctime"`
	Order         string    `json:"order"`
	Sort          string    `json:"sort"`
	Int0          []int64   `json:"int_0"`
	Int1          []int64   `json:"int_1"`
	Int2          []int64   `json:"int_2"`
	Str0          string    `json:"str_0"`
	Str1          string    `json:"str_1"`
	Str2          string    `json:"str_2"`
	Group         string    `json:"group"`
	Distinct      string    `json:"distinct"`
}

AuditReportSearchCond .

type ChallCount

type ChallCount struct {
	TotalCount    int64          `json:"total_count"`
	BusinessCount map[int8]int64 `json:"business_count"`
}

ChallCount is the model for challenge count result

type ChallListPage

type ChallListPage struct {
	Items      []*model.Chall `json:"items"`
	TotalCount int32          `json:"total_count"`
	PN         int32          `json:"pn"`
	PS         int32          `json:"ps"`
}

ChallListPage is the model for challenge list result

type ChallListPageCommon

type ChallListPageCommon struct {
	Items []*model.Chall `json:"items"`
	Page  *model.Page    `json:"page"`
}

ChallListPageCommon model for challenge/list2 result

type ChallReleaseUpSearchCond

type ChallReleaseUpSearchCond struct {
	Cids            []int64 `json:"id"`
	AssigneeAdminID int64   `json:"assignee_adminid"`
	BusinessState   int64   `json:"business_state"`
}

ChallReleaseUpSearchCond .

type ChallReleaseUpSearchCondItem

type ChallReleaseUpSearchCondItem struct {
	Cid             int64 `json:"id"`
	AssigneeAdminID int64 `json:"assignee_adminid"`
	BusinessState   int64 `json:"business_state"`
}

ChallReleaseUpSearchCondItem .

type ChallSearchCommonCond

type ChallSearchCommonCond struct {
	// Using int64 directly
	Fields             []string
	Business           int8
	IDs                []int64
	Gids               []int64
	Oids               []string
	Tids               []int64
	Mids               []int64
	ObjectMids         []int64
	Rounds             []int64
	TypeIDs            []int64
	AssigneeAdminIDs   []int64
	AssigneeAdminNames []string
	AdminIDs           []int64
	States             []int64
	BusinessStates     []int64

	CTimeFrom string
	CTimeTo   string
	KW        []string
	KWFields  []string
	Distinct  []string

	PN    int
	PS    int
	Order string
	Sort  string
}

ChallSearchCommonCond is the common condition model to send challenge search request

func (*ChallSearchCommonCond) FormatState

func (csc *ChallSearchCommonCond) FormatState()

FormatState transform add state in queue into search cond

type ChallSearchCommonData

type ChallSearchCommonData struct {
	ID       int64       `json:"id"`
	Oid      int64       `json:"oid"`
	Mid      int64       `json:"mid"`
	Gid      int64       `json:"gid"`
	Tid      int64       `json:"tid"`
	CountTid int64       `json:"count_tid"`
	State    interface{} `json:"state"` //兼容 int string
	Title    string      `json:"title"`
	Business int8        `json:"business"`
	TypeID   int64       `json:"typeid"`
	CTime    string      `json:"ctime"`
}

ChallSearchCommonData .

type ChallSearchCommonResp

type ChallSearchCommonResp struct {
	Page   *model.Page              `json:"page"`
	Result []*ChallSearchCommonData `json:"result"`
}

ChallSearchCommonResp .

type ChallSearchCond

type ChallSearchCond struct {
	// Using int64 directly
	Cids      []int64
	Gids      []int64
	Mids      []int64
	Tids      []int64
	TagRounds []int64
	States    []int64

	Keyword   string
	CTimeFrom string
	CTimeTo   string

	PN    int64
	PS    int64
	Order string
	Sort  string
}

ChallSearchCond is the condition model to send challenge search request

func (*ChallSearchCond) FormatState

func (cc *ChallSearchCond) FormatState()

FormatState .

type ChallSearchResult

type ChallSearchResult struct {
	Code    int32  `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"`
			Gid   int64  `json:"gid"`
			Mid   int64  `json:"mid"`
			Tid   int64  `json:"tid"`
			CTime string `json:"ctime"`
		} `json:"result"`
	} `json:"data"`
}

ChallSearchResult is the model to parse search challenge result

type ChallUpSearchResult

type ChallUpSearchResult struct {
	Code    int32  `json:"code"`
	Message string `json:"message"`
	TTL     int32  `json:"ttl"`
}

ChallUpSearchResult .

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
	FirstUserTid []int64

	ReportMID []int64 // report_mid
	AuthorMID []int64 // mid

	KWPriority bool
	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 GroupSearchCommonData

type GroupSearchCommonData struct {
	ID           int64 `json:"id"`
	Oid          int64 `json:"oid"`
	Mid          int64 `json:"mid"`
	TypeID       int64 `json:"typeid"`
	Eid          int64 `json:"eid"`
	FirstUserTid int64 `json:"first_user_tid"`
}

GroupSearchCommonData .

type GroupSearchCommonResp

type GroupSearchCommonResp struct {
	Page   *model.Page              `json:"page"`
	Result []*GroupSearchCommonData `json:"result"`
}

GroupSearchCommonResp .

type ReportLog

type ReportLog struct {
	Action    string `json:"action"`
	Business  int64  `json:"business"`
	CTime     string `json:"ctime"`
	ExtraData string `json:"extra_data"`
	Str0      string `json:"str_0"`
	Str1      string `json:"str_1"`
	Str2      string `json:"str_2"`
	Int0      int64  `json:"int_0"`
	Int1      int64  `json:"int_1"`
	Int2      int64  `json:"int_2"`
	Int3      int64  `json:"int_3"`
	Oid       int64  `json:"oid"`
	Type      int64  `json:"type"`
	UID       int64  `json:"uid"`
	UName     string `json:"uname"`
}

ReportLog .

Jump to

Keyboard shortcuts

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