msg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAuthReq

type AddAuthReq struct {
	Name     string `json:"name" binding:"required"`
	Role     string `json:"role" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type AddAuthResp

type AddAuthResp struct {
	StdResp
}

type AddProductsReq

type AddProductsReq struct {
	StoreID   string  `json:"store_id" bson:"store_id"`
	Name      string  `json:"item_name" bson:"item_name"`
	Price     float64 `json:"item_price" bson:"item_price"`
	Score     float64 `json:"item_score" bson:"item_score"`
	SaleCount int     `json:"item_salecount" bson:"item_salecount"`
	Brand     string  `json:"item_brand" bson:"item_brand"`
}

type AddProductsResp

type AddProductsResp struct {
	ProductID string `json:"item_id"`
	StdResp
}

type AddRecordReq

type AddRecordReq struct {
	UserID string `json:"user_id" `
	ProID  string `json:"pro_id" `
	Query  string `json:"query" `
	Status int    `json:"is_trade" `
}

type AddRecordResp

type AddRecordResp struct {
	RecordID int `json:"success"`
	StdResp
}

type AddStoresReq

type AddStoresReq struct {
	Name       string  `json:"name" binding:"required"`
	StoreName  string  `json:"store_name" binding:"required"`
	StoreLevel float64 `json:"store_level"`
	StoreCity  string  `json:"store_city"`
}

type AddStoresResp

type AddStoresResp struct {
	StoreID string `json:"store_id"`
	StdResp
}

type AddUsersReq

type AddUsersReq struct {
	Name       string  `json:"name" binding:"required"`
	UserName   string  `json:"user_name" binding:"required"`
	UserAge    int     `json:"user_age"`
	Gender     int     `json:"user_gender"`
	City       string  `json:"user_city"`
	Historysum float64 `json:"user_historysum"`
}

type AddUsersResp

type AddUsersResp struct {
	UserID string `json:"user_id"`
	StdResp
}

type DeleteProductsReq

type DeleteProductsReq struct {
	ID string `json:"item_id" bson:"item_id"`
}

type DeleteProductsResp

type DeleteProductsResp struct {
	ProductID int `json:"delete_success_num"`
	StdResp
}

type DeleteStoresReq

type DeleteStoresReq struct {
	StoreID string `json:"store_id" binding:"required"`
	Name    string `json:"name" binding:"required"`
}

type DeleteStoresResp

type DeleteStoresResp struct {
	StoreID int `json:"delete_success_num"`
	StdResp
}

type DeleteUsersReq

type DeleteUsersReq struct {
	UserID string `json:"user_id" binding:"required"`
	Name   string `json:"name" binding:"required"`
}

type DeleteUsersResp

type DeleteUsersResp struct {
	UserID string `json:"delete_success_num"`
	StdResp
}

type GetBasicReq

type GetBasicReq struct {
}

type GetBasicResp

type GetBasicResp struct {
	model.TBasic
	StdResp
}

type GetProductsByPageReq

type GetProductsByPageReq struct {
	PageSize int    `json:"page_size"`
	PageNum  int    `json:"page_num"`
	StoreID  string `json:"store_id"`
}

type GetProductsReq

type GetProductsReq struct {
	StoreID string `form:"store_id"`
}

type GetProductsResp

type GetProductsResp struct {
	List []model.TProduct `json:"list"`
	StdResp
}

type GetRecommendReq

type GetRecommendReq struct {
	UserID   string `json:"user_id"`
	Query    string `json:"query"`
	PageSize int    `json:"page_size"`
	PageNum  int    `json:"page_num"`
}

type GetRecommendResp

type GetRecommendResp struct {
	List []model.TProduct `json:"list"`
	StdResp
}

type GetRecordsReq

type GetRecordsReq struct {
	ProductID string `form:"product_id"`
	UserID    string `form:"user_id"`
}

type GetRecordsResp

type GetRecordsResp struct {
	List []model.TRecord `json:"list"`
	StdResp
}

type GetStoresByPageReq

type GetStoresByPageReq struct {
	PageSize int `json:"page_size"`
	PageNum  int `json:"page_num"`
}

type GetStoresReq

type GetStoresReq struct {
	StoreID int `form:"store_id"`
}

type GetStoresResp

type GetStoresResp struct {
	List []model.TStores `json:"data"`
	StdResp
}

type GetUsersByPageReq

type GetUsersByPageReq struct {
	PageSize int `json:"page_size"`
	PageNum  int `json:"page_num"`
}

type GetUsersReq

type GetUsersReq struct {
	UserID int `form:"user_id"`
}

type GetUsersResp

type GetUsersResp struct {
	List []model.TUser `json:"list"`
	StdResp
}

type StdResp

type StdResp struct {
	ErrorCode int64  `json:"code"`
	ErrorMsg  string `json:"message"`
	RequestID string `json:"request_id"`
}

type UpdateProductsReq

type UpdateProductsReq struct {
	ID        string  `json:"item_id" bson:"item_id"`
	StoreID   string  `json:"store_id" bson:"store_id"`
	Name      string  `json:"item_name" bson:"item_name"`
	Price     float64 `json:"item_price" bson:"item_price"`
	Score     float64 `json:"item_score" bson:"item_score"`
	SaleCount int     `json:"item_salecount" bson:"item_salecount"`
	Brand     string  `json:"item_brand" bson:"item_brand"`
}

type UpdateProductsResp

type UpdateProductsResp struct {
	ProductID int `json:"update_sucess_num"`
	StdResp
}

type UpdateStoresReq

type UpdateStoresReq struct {
	StoreID    string  `json:"store_id"`
	StoreName  string  `json:"store_name" `
	StoreLevel float64 `json:"store_level" `
	StoreCity  string  `json:"store_city"`
}

type UpdateStoresResp

type UpdateStoresResp struct {
	StoreID int `json:"update_sucess_num"`
	StdResp
}

type UpdateUsersReq

type UpdateUsersReq struct {
	UserID     string  `json:"user_id"`
	UserName   string  `json:"user_name" binding:"required"`
	UserAge    int     `json:"user_age"`
	Gender     int     `json:"user_gender"`
	City       string  `json:"user_city"`
	Historysum float64 `json:"user_historysum"`
}

type UpdateUsersResp

type UpdateUsersResp struct {
	UserID string `json:"update_sucess_num"`
	StdResp
}

Jump to

Keyboard shortcuts

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