model

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameAlarm = "alarms"
View Source
const TableNameHistory = "histories"
View Source
const TableNameKeyword = "keywords"

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	UserID           int64      `gorm:"column:user_id;primaryKey;autoIncrement:false" json:"userId"`
	BusinessID       string     `gorm:"column:business_id;not null" json:"businessId"`
	CreditName       string     `gorm:"column:credit_name;not null" json:"creditName"`
	CreditCode       string     `gorm:"column:credit_code;primaryKey;autoIncrement:false;not null" json:"creditCode"`
	StartDate        time.Time  `gorm:"column:start_date;not null" json:"startDate"`
	EndDate          *time.Time `gorm:"column:end_date" json:"endDate"`
	DetailReason     *string    `gorm:"column:detail_reason" json:"detailReason"`
	HandleDepartment *string    `gorm:"column:handle_department" json:"handleDepartment"`
	HandleUnit       *string    `gorm:"column:handle_unit" json:"handleUnit"`
	HandleResult     *string    `gorm:"column:handle_result" json:"handleResult"`
	PageUrl1         string     `gorm:"column:page_url1;not null" json:"pageUrl1"`
	NoticeID         string     `gorm:"column:notice_id;not null" json:"noticeId"`
	OriginNoticeID   *string    `gorm:"column:origin_notice_id" json:"originNoticeId"`
	PageUrl2         *string    `gorm:"column:page_url2" json:"pageUrl2"`
	Title            *string    `gorm:"column:title" json:"title"`
}

Alarm mapped from table <alarms>

func (*Alarm) TableName

func (*Alarm) TableName() string

TableName Alarm's table name

func (*Alarm) ToMessage added in v1.4.2

func (a *Alarm) ToMessage() (string, error)

type AlarmDetail added in v1.4.1

type AlarmDetail struct {
	Msg  string `json:"msg,omitempty"`
	Code string `json:"code,omitempty"`
	Data struct {
		NoticeTime          string `json:"noticeTime,omitempty"`
		FieldValues         any    `json:"fieldValues,omitempty"`
		StaticState         any    `json:"staticState,omitempty"`
		ID                  string `json:"id,omitempty"`
		State               string `json:"state,omitempty"`
		StateStr            any    `json:"stateStr,omitempty"`
		Issign              string `json:"issign,omitempty"`
		Isdel               string `json:"isdel,omitempty"`
		IsdelStr            any    `json:"isdelStr,omitempty"`
		Iscomment           string `json:"iscomment,omitempty"`
		IscommentStr        any    `json:"iscommentStr,omitempty"`
		Isscore             any    `json:"isscore,omitempty"`
		IsscoreStr          any    `json:"isscoreStr,omitempty"`
		Video               any    `json:"video,omitempty"`
		Channelids          any    `json:"channelids,omitempty"`
		CheckOpenendtime    any    `json:"checkOpenendtime,omitempty"`
		MobileChannelids    any    `json:"mobileChannelids,omitempty"`
		MwebChannelids      any    `json:"mwebChannelids,omitempty"`
		AddUserLoginName    any    `json:"addUserLoginName,omitempty"`
		AddUserName         any    `json:"addUserName,omitempty"`
		Countnum            int    `json:"countnum,omitempty"`
		Infoordernum        int    `json:"infoordernum,omitempty"`
		Datename            any    `json:"datename,omitempty"`
		HTMLIndexnum        int    `json:"htmlIndexnum,omitempty"`
		HTMLIndexnumLike    any    `json:"htmlIndexnumLike,omitempty"`
		HTMLFileName        any    `json:"htmlFileName,omitempty"`
		Isimgs              any    `json:"isimgs,omitempty"`
		StateResult         any    `json:"stateResult,omitempty"`
		Htmlpath            string `json:"htmlpath,omitempty"`
		Mobilepath          any    `json:"mobilepath,omitempty"`
		SQL                 any    `json:"sql,omitempty"`
		Formid              any    `json:"formid,omitempty"`
		SiteBean            any    `json:"siteBean,omitempty"`
		NoticeID            string `json:"noticeId,omitempty"`
		RegionName          string `json:"regionName,omitempty"`
		PurchaseNature      any    `json:"purchaseNature,omitempty"`
		CatalogueNameList   any    `json:"catalogueNameList,omitempty"`
		PlanCodes           any    `json:"planCodes,omitempty"`
		PurchaseManner      any    `json:"purchaseManner,omitempty"`
		Budget              any    `json:"budget,omitempty"`
		RegionCode          string `json:"regionCode,omitempty"`
		NoticeType          string `json:"noticeType,omitempty"`
		NoticeTypeName      any    `json:"noticeTypeName,omitempty"`
		OpenTenderTime      any    `json:"openTenderTime,omitempty"`
		ExpireTime          any    `json:"expireTime,omitempty"`
		VideoType           any    `json:"videoType,omitempty"`
		SuccessfulMoney     any    `json:"successfulMoney,omitempty"`
		OpenTenderCode      any    `json:"openTenderCode,omitempty"`
		AgentManageName     any    `json:"agentManageName,omitempty"`
		AgentLinkPhone      any    `json:"agentLinkPhone,omitempty"`
		AgentLinkMan        any    `json:"agentLinkMan,omitempty"`
		AgentAddress        any    `json:"agentAddress,omitempty"`
		RecordTime          any    `json:"recordTime,omitempty"`
		DemandTime          any    `json:"demandTime,omitempty"`
		GovService          any    `json:"govService,omitempty"`
		PunishType          any    `json:"punishType,omitempty"`
		Respondents         any    `json:"respondents,omitempty"`
		TransactionType     any    `json:"transactionType,omitempty"`
		Complainant         any    `json:"complainant,omitempty"`
		PunishObject        any    `json:"punishObject,omitempty"`
		ContactPerson       any    `json:"contactPerson,omitempty"`
		TransactionTypeCode any    `json:"transactionTypeCode,omitempty"`
		ContactNumber       any    `json:"contactNumber,omitempty"`
		NoticeDetailURL     any    `json:"noticeDetailUrl,omitempty"`
		BidCompany          any    `json:"bidCompany,omitempty"`
		ProductCategoryCode any    `json:"productCategoryCode,omitempty"`
		ProductCategoryName any    `json:"productCategoryName,omitempty"`
		Site                string `json:"site,omitempty"`
		Infosite            any    `json:"infosite,omitempty"`
		Sitename            any    `json:"sitename,omitempty"`
		Indexnum            any    `json:"indexnum,omitempty"`
		Opentype            string `json:"opentype,omitempty"`
		Opentimetype        string `json:"opentimetype,omitempty"`
		Openendtime         any    `json:"openendtime,omitempty"`
		OpenendtimeSec      any    `json:"openendtimeSec,omitempty"`
		OpenendtimeStr      any    `json:"openendtimeStr,omitempty"`
		Channel             string `json:"channel,omitempty"`
		Channelname         any    `json:"channelname,omitempty"`
		ChannelPagemark     string `json:"channelPagemark,omitempty"`
		ChannelIndexnum     int    `json:"channelIndexnum,omitempty"`
		ChannelFolder       any    `json:"channelFolder,omitempty"`
		ChannelParid        any    `json:"channelParid,omitempty"`
		ChannelParPagemark  any    `json:"channelParPagemark,omitempty"`
		Title               string `json:"title,omitempty"`
		Shorttitle          string `json:"shorttitle,omitempty"`
		Showtitle           any    `json:"showtitle,omitempty"`
		TitleSuffix         any    `json:"titleSuffix,omitempty"`
		ShowtitleLen        int    `json:"showtitleLen,omitempty"`
		Pageurl             string `json:"pageurl,omitempty"`
		Noids               any    `json:"noids,omitempty"`
		Sitepath            any    `json:"sitepath,omitempty"`
		ContextPath         string `json:"contextPath,omitempty"`
		Channels            any    `json:"channels,omitempty"`
		Starttime           any    `json:"starttime,omitempty"`
		Endtime             any    `json:"endtime,omitempty"`
		SearchKey           any    `json:"searchKey,omitempty"`
		Ishot               any    `json:"ishot,omitempty"`
		Isnew               any    `json:"isnew,omitempty"`
		InRelationID        string `json:"inRelationId,omitempty"`
		OutRelationID       string `json:"outRelationId,omitempty"`
		BusinessID          string `json:"businessId,omitempty"`
		Titlecolor          any    `json:"titlecolor,omitempty"`
		Titleblod           any    `json:"titleblod,omitempty"`
		Source              any    `json:"source,omitempty"`
		Author              any    `json:"author,omitempty"`
		Description         string `json:"description,omitempty"`
		Tags                any    `json:"tags,omitempty"`
		Img                 any    `json:"img,omitempty"`
		URL                 any    `json:"url,omitempty"`
		Attchs              any    `json:"attchs,omitempty"`
		AddtimeStr          string `json:"addtimeStr,omitempty"`
		Addtimees           string `json:"addtimees,omitempty"`
		DateFormat          any    `json:"dateFormat,omitempty"`
		Templet             any    `json:"templet,omitempty"`
		Mwebtemplet         any    `json:"mwebtemplet,omitempty"`
		Istop               any    `json:"istop,omitempty"`
		Topendtime          any    `json:"topendtime,omitempty"`
		TopendtimeStr       any    `json:"topendtimeStr,omitempty"`
		Clicknum            any    `json:"clicknum,omitempty"`
		Adduser             any    `json:"adduser,omitempty"`
		AdduserLike         any    `json:"adduserLike,omitempty"`
		Content             string `json:"content,omitempty"`
		Addtime             int64  `json:"addtime,omitempty"`
	} `json:"data,omitempty"`
}

type AlarmList added in v1.4.1

type AlarmList struct {
	Code string `json:"code"`
	Data struct {
		Total       int `json:"total"`
		Information struct {
			Overdue string `json:"overdue"`
			Env     string `json:"env"`
			Status  string `json:"status"`
		} `json:"information"`
		Rows []struct {
			BreedCategory      string `json:"breedCategory"`
			Address            string `json:"address"`
			Code               string `json:"code"`
			EndDate            string `json:"endDate"`
			HandleResult       string `json:"handleResult"`
			Type               string `json:"type"`
			CreditType         string `json:"creditType"`
			DetailReason       string `json:"detailReason"`
			NoticeID           string `json:"noticeId"`
			HandleScopeFirst   string `json:"handleScopeFirst"`
			CreditCode         string `json:"creditCode"`
			HandleDepartment   string `json:"handleDepartment"`
			LawBasic           string `json:"lawBasic"`
			HandleScope        string `json:"handleScope"`
			StatusName         string `json:"statusName"`
			HandleUnit         string `json:"handleUnit"`
			ID                 string `json:"id"`
			OriginNoticeID     string `json:"originNoticeId"`
			Pageurl            string `json:"pageurl"`
			BreedCategoryScope string `json:"breedCategoryScope"`
			DataSource         string `json:"dataSource"`
			CreditName         string `json:"creditName"`
			StartDate          string `json:"startDate"`
			Status             string `json:"status"`
		} `json:"rows"`
		QueryInfo struct {
			QueryString string `json:"queryString"`
		} `json:"queryInfo"`
	} `json:"data"`
}

type FileType added in v1.4.1

type FileType int
const (
	PDF FileType = iota
	IMG
)

type History

type History struct {
	UserID        int64     `gorm:"column:user_id;primaryKey;autoIncrement:false" json:"userId"`
	URL           string    `gorm:"column:url;primaryKey;not null" json:"url"`
	UpdatedAt     time.Time `gorm:"column:updated_at;not null" json:"updatedAt"`
	Title         string    `gorm:"column:title;not null" json:"title"`
	HasTenderCode int32     `gorm:"column:has_tender_code;not null;default:0" json:"hasTenderCode"`
}

History mapped from table <histories>

func (*History) TableName

func (*History) TableName() string

TableName History's table name

type Keyword

type Keyword struct {
	ID        *int32         `gorm:"column:id;type:INTEGER" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;not null" json:"createdAt"`
	UpdatedAt *time.Time     `gorm:"column:updated_at" json:"updatedAt"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_keywords_deleted_at,priority:1" json:"deletedAt"`
	Keyword   string         `gorm:"column:keyword;not null" json:"keyword"`
	UserID    int64          `gorm:"column:user_id;not null" json:"userId"`
	Type      int32          `gorm:"column:type;not null" json:"type"`
	Counter   int32          `gorm:"column:counter;not null" json:"counter"`
}

Keyword mapped from table <keywords>

func (*Keyword) TableName

func (*Keyword) TableName() string

TableName Keyword's table name

type KeywordType

type KeywordType int
const (
	PROJECT KeywordType = iota
	ALARM
)

func (KeywordType) String

func (k KeywordType) String() string

type ProjectResult

type ProjectResult struct {
	Msg   string `json:"msg"`
	Total int    `json:"total"`
	Code  string `json:"code"`
	Data  []struct {
		NoticeTime          string `json:"noticeTime,omitempty"`
		FieldValues         any    `json:"fieldValues,omitempty"`
		StaticState         any    `json:"staticState,omitempty"`
		ID                  string `json:"id,omitempty"`
		State               string `json:"state,omitempty"`
		StateStr            any    `json:"stateStr,omitempty"`
		Issign              string `json:"issign,omitempty"`
		Isdel               string `json:"isdel,omitempty"`
		IsdelStr            any    `json:"isdelStr,omitempty"`
		Iscomment           string `json:"iscomment,omitempty"`
		IscommentStr        any    `json:"iscommentStr,omitempty"`
		Isscore             any    `json:"isscore,omitempty"`
		IsscoreStr          any    `json:"isscoreStr,omitempty"`
		Video               any    `json:"video,omitempty"`
		Channelids          any    `json:"channelids,omitempty"`
		CheckOpenendtime    any    `json:"checkOpenendtime,omitempty"`
		MobileChannelids    any    `json:"mobileChannelids,omitempty"`
		MwebChannelids      any    `json:"mwebChannelids,omitempty"`
		AddUserLoginName    any    `json:"addUserLoginName,omitempty"`
		AddUserName         any    `json:"addUserName,omitempty"`
		Countnum            int    `json:"countnum,omitempty"`
		Infoordernum        int    `json:"infoordernum,omitempty"`
		Datename            any    `json:"datename,omitempty"`
		HTMLIndexnum        int    `json:"htmlIndexnum,omitempty"`
		HTMLIndexnumLike    any    `json:"htmlIndexnumLike,omitempty"`
		HTMLFileName        any    `json:"htmlFileName,omitempty"`
		Isimgs              any    `json:"isimgs,omitempty"`
		StateResult         any    `json:"stateResult,omitempty"`
		Htmlpath            string `json:"htmlpath,omitempty"`
		Mobilepath          any    `json:"mobilepath,omitempty"`
		SQL                 any    `json:"sql,omitempty"`
		Formid              any    `json:"formid,omitempty"`
		SiteBean            any    `json:"siteBean,omitempty"`
		NoticeID            string `json:"noticeId,omitempty"`
		RegionName          string `json:"regionName,omitempty"`
		PurchaseNature      string `json:"purchaseNature,omitempty"`
		CatalogueNameList   any    `json:"catalogueNameList,omitempty"`
		PlanCodes           any    `json:"planCodes,omitempty"`
		PurchaseManner      string `json:"purchaseManner,omitempty"`
		Budget              any    `json:"budget,omitempty"`
		RegionCode          string `json:"regionCode,omitempty"`
		NoticeType          string `json:"noticeType,omitempty"`
		NoticeTypeName      any    `json:"noticeTypeName,omitempty"`
		OpenTenderTime      any    `json:"openTenderTime,omitempty"`
		ExpireTime          any    `json:"expireTime,omitempty"`
		VideoType           any    `json:"videoType,omitempty"`
		SuccessfulMoney     any    `json:"successfulMoney,omitempty"`
		OpenTenderCode      string `json:"openTenderCode,omitempty"`
		AgentManageName     any    `json:"agentManageName,omitempty"`
		AgentLinkPhone      any    `json:"agentLinkPhone,omitempty"`
		AgentLinkMan        any    `json:"agentLinkMan,omitempty"`
		AgentAddress        any    `json:"agentAddress,omitempty"`
		RecordTime          any    `json:"recordTime,omitempty"`
		DemandTime          any    `json:"demandTime,omitempty"`
		GovService          string `json:"govService,omitempty"`
		PunishType          string `json:"punishType,omitempty"`
		Respondents         any    `json:"respondents,omitempty"`
		TransactionType     any    `json:"transactionType,omitempty"`
		Complainant         any    `json:"complainant,omitempty"`
		PunishObject        any    `json:"punishObject,omitempty"`
		ContactPerson       any    `json:"contactPerson,omitempty"`
		TransactionTypeCode any    `json:"transactionTypeCode,omitempty"`
		ContactNumber       any    `json:"contactNumber,omitempty"`
		NoticeDetailURL     any    `json:"noticeDetailUrl,omitempty"`
		BidCompany          any    `json:"bidCompany,omitempty"`
		ProductCategoryCode any    `json:"productCategoryCode,omitempty"`
		ProductCategoryName any    `json:"productCategoryName,omitempty"`
		Site                string `json:"site,omitempty"`
		Infosite            any    `json:"infosite,omitempty"`
		Sitename            any    `json:"sitename,omitempty"`
		Indexnum            any    `json:"indexnum,omitempty"`
		Opentype            string `json:"opentype,omitempty"`
		Opentimetype        string `json:"opentimetype,omitempty"`
		Openendtime         any    `json:"openendtime,omitempty"`
		OpenendtimeSec      any    `json:"openendtimeSec,omitempty"`
		OpenendtimeStr      any    `json:"openendtimeStr,omitempty"`
		Channel             string `json:"channel,omitempty"`
		Channelname         any    `json:"channelname,omitempty"`
		ChannelPagemark     string `json:"channelPagemark,omitempty"`
		ChannelIndexnum     int    `json:"channelIndexnum,omitempty"`
		ChannelFolder       any    `json:"channelFolder,omitempty"`
		ChannelParid        any    `json:"channelParid,omitempty"`
		ChannelParPagemark  any    `json:"channelParPagemark,omitempty"`
		Title               string `json:"title,omitempty"`
		Shorttitle          string `json:"shorttitle,omitempty"`
		Showtitle           any    `json:"showtitle,omitempty"`
		TitleSuffix         any    `json:"titleSuffix,omitempty"`
		ShowtitleLen        int    `json:"showtitleLen,omitempty"`
		Pageurl             string `json:"pageurl,omitempty"`
		Noids               any    `json:"noids,omitempty"`
		Sitepath            any    `json:"sitepath,omitempty"`
		ContextPath         string `json:"contextPath,omitempty"`
		Channels            any    `json:"channels,omitempty"`
		Starttime           any    `json:"starttime,omitempty"`
		Endtime             any    `json:"endtime,omitempty"`
		SearchKey           any    `json:"searchKey,omitempty"`
		Ishot               any    `json:"ishot,omitempty"`
		Isnew               any    `json:"isnew,omitempty"`
		Titlecolor          any    `json:"titlecolor,omitempty"`
		Titleblod           any    `json:"titleblod,omitempty"`
		Source              any    `json:"source,omitempty"`
		Author              any    `json:"author,omitempty"`
		Description         string `json:"description,omitempty"`
		Tags                any    `json:"tags,omitempty"`
		Img                 any    `json:"img,omitempty"`
		URL                 any    `json:"url,omitempty"`
		Attchs              any    `json:"attchs,omitempty"`
		AddtimeStr          string `json:"addtimeStr,omitempty"`
		Addtimees           string `json:"addtimees,omitempty"`
		DateFormat          any    `json:"dateFormat,omitempty"`
		Templet             any    `json:"templet,omitempty"`
		Mwebtemplet         any    `json:"mwebtemplet,omitempty"`
		Istop               any    `json:"istop,omitempty"`
		Topendtime          any    `json:"topendtime,omitempty"`
		TopendtimeStr       any    `json:"topendtimeStr,omitempty"`
		Clicknum            any    `json:"clicknum,omitempty"`
		Adduser             any    `json:"adduser,omitempty"`
		AdduserLike         any    `json:"adduserLike,omitempty"`
		Content             string `json:"content,omitempty"`
		Addtime             int64  `json:"addtime,omitempty"`
	} `json:"data"`
}

type RequestInfo

type RequestInfo struct {
	ChatId         int64
	MessageId      int
	ReplyMessageId int
	Message        string
	FileName       string
	Type           FileType
}

Jump to

Keyboard shortcuts

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