mbbi

package
v0.15.108 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFav

func AddFav(biddingID string, userID string) error

func CategoryListBidding

func CategoryListBidding(userID string) (map[string]interface{}, error)

func ClearSearchHis

func ClearSearchHis(userID string) error

func Destroy

func Destroy()

func DetailBidding

func DetailBidding(id string, userID string) (map[string]interface{}, error)

func HotListBidding

func HotListBidding(userID string) (map[string]interface{}, error)

func HotWordsBidding

func HotWordsBidding(userID string) (map[string]interface{}, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func IsEnableFullSearch

func IsEnableFullSearch() (map[string]interface{}, error)

func ListBidding

func ListBidding(category string, userID string, pageNo int, pageSize int) (map[string]interface{}, error)

func RmFav

func RmFav(biddingID string, userID string) error

func SearchBidding

func SearchBidding(category string, keyword string, userID string,
	pageNo int, pageSize int) (map[string]interface{}, error)

func SearchFulltextBidding

func SearchFulltextBidding(category string, keyword string, userID string,
	pageNo int, pageSize int) (map[string]interface{}, error)

func SearchScreenBidding

func SearchScreenBidding(query *SearchScreenBiddingQuery) (map[string]interface{}, error)

Types

type BiddingResponse

type BiddingResponse struct {
	Data map[string]interface{} `json:"data"`
	// contains filtered or unexported fields
}

type DetailBiddingQuery

type DetailBiddingQuery struct {
	ID     string `form:"id"`
	UserID string `form:"userId"`
}

type FavInfo

type FavInfo struct {
	ID          string `json:"id"`
	UserID      string `json:"userId"`
	BiddingID   string `json:"biddingId"`
	Title       string `json:"title"`
	Category    string `json:"category"`
	PublishDate string `json:"publishDate"`
	District    string `json:"district"`
	Pathname    string `json:"pathname"`
}

func GetFav

func GetFav(userID string, pageNo int, pageSize int) ([]FavInfo, int64, error)

type FootprintInfo

type FootprintInfo struct {
	ID          string `json:"id"`
	UserID      string `json:"userId"`
	BiddingID   string `json:"biddingId"`
	Title       string `json:"title"`
	Category    string `json:"category"`
	PublishDate string `json:"publishTime"`
	District    string `json:"district"`
	Pathname    string `json:"pathname"`
}

func GetFootprint

func GetFootprint(userID string, pageNo int, pageSize int) ([]FootprintInfo, int64, error)

type GetFavResponse

type GetFavResponse struct {
	PageNo     int       `json:"pageNo"`
	TotalCount int64     `json:"totalCount"`
	Infos      []FavInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetFootprintsResponse

type GetFootprintsResponse struct {
	PageNo     int             `json:"pageNo"`
	TotalCount int64           `json:"totalCount"`
	Infos      []FootprintInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetSearchHisResponse

type GetSearchHisResponse struct {
	Infos []SearchHisInfo `json:"infos"`
	// contains filtered or unexported fields
}

type ListBiddingQuery

type ListBiddingQuery struct {
	Category string `form:"category"`
	UserID   string `form:"userId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type SearchBiddingQuery

type SearchBiddingQuery struct {
	Category string `form:"category"`
	Keyword  string `form:"keyword"`
	UserID   string `form:"userId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type SearchFulltextBiddingQuery

type SearchFulltextBiddingQuery struct {
	Category string `form:"category"`
	Keyword  string `form:"keyword"`
	UserID   string `form:"userId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type SearchHisInfo

type SearchHisInfo struct {
	ID         string `json:"id"`
	UserID     string `json:"userId"`
	Keyword    string `json:"keyword"`
	SearchType uint8  `json:"searchType"`
}

func GetSearchHis

func GetSearchHis(userID string) ([]SearchHisInfo, error)

type SearchScreenBiddingQuery

type SearchScreenBiddingQuery struct {
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
	Keyword  string `form:"keyword"`
	Category string `form:"category"`
	District string `form:"district"`
	Dates    string `form:"dates"`
	Datee    string `form:"datee"`
	UserID   string `form:"userId"`
}

type UserBiddingReq

type UserBiddingReq struct {
	BiddingID string `json:"biddingId"`
	UserID    string `json:"userId"`
}

type UserQuery

type UserQuery struct {
	UserID   string `form:"userId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

Jump to

Keyboard shortcuts

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