mbds

package
v0.15.14-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteApplyPerson

func DeleteApplyPerson(orgId, id string) error

func DeleteProductType added in v0.13.37

func DeleteProductType(orgId, id string) error

func DeleteProducts

func DeleteProducts(orgId, id string) error

func DeleteRechargeRecord

func DeleteRechargeRecord(orgId, id string) error

func DeleteStations added in v0.13.28

func DeleteStations(orgId, id string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func UpdateProductType added in v0.13.37

func UpdateProductType(req *UpdateProductTypeRequest) error

func UpdateProducts

func UpdateProducts(req *UpdateProductsRequest) error

func UpdateRechargeRecord

func UpdateRechargeRecord(req *UpdateRechargeRecordRequest) error

func UpdateStations added in v0.13.28

func UpdateStations(req *UpdateStationsRequest) error

Types

type ApplyPersonInfo

type ApplyPersonInfo struct {
	ID           string  `json:"id"`
	DeptID       string  `json:"deptId"`
	StationID    string  `json:"stationId"`
	StationName  string  `json:"stationName"`
	ProductID    string  `json:"productId"`
	ProductName  string  `json:"productName"`
	ProductPrice float64 `json:"productPrice"`
	Name         string  `json:"name"`
	Phone        string  `json:"phone"`
	IDCard       string  `json:"idCard"`
	Sex          string  `json:"sex"`
	MemberID     string  `json:"memberId"`
	OrgID        string  `json:"orgId"`
}

type CreateApplyPersonRequest

type CreateApplyPersonRequest struct {
	OrgID        string  `json:"orgId" binding:"required"`
	DeptID       string  `json:"deptId" binding:"required"`
	StationID    string  `json:"stationId" binding:"required"`
	StationName  string  `json:"stationName" binding:"required"`
	ProductID    string  `json:"productId" binding:"required"`
	ProductName  string  `json:"productName" binding:"required"`
	ProductPrice float64 `json:"productPrice" binding:"required"`
	Name         string  `json:"name" binding:"required"`
	Phone        string  `json:"phone" binding:"required"`
	IDCard       string  `json:"idCard" binding:"required"`
	Sex          string  `json:"sex" binding:"required"`
	MemberID     string  `json:"memberId" binding:"required"`
}

type CreateApplyPersonResponse

type CreateApplyPersonResponse struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

type CreateProductTypeRequest added in v0.13.37

type CreateProductTypeRequest struct {
	OrgID string `json:"orgId" binding:"required"`
	Name  string `json:"name" binding:"required"`
	Sort  uint8  `json:"sort" binding:"required"`
}

type CreateProductTypeResponse added in v0.13.37

type CreateProductTypeResponse struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

func CreateProductType added in v0.13.37

func CreateProductType(req *CreateProductTypeRequest) (*CreateProductTypeResponse, error)

type CreateProductsRequest

type CreateProductsRequest struct {
	OrgID         string  `json:"orgId" binding:"required"`
	Name          string  `json:"name" binding:"required"`
	OriginalPrice float64 `json:"originalPrice" binding:"required"`
	CurrentPrice  float64 `json:"currentPrice" binding:"required"`
	Status        uint8   `json:"status" binding:"required"`
	Order         uint8   `json:"order" binding:"required"`
	TypeID        string  `json:"typeId" binding:"required"`
	ImgObj        string  `json:"imgObj"`
}

type CreateProductsResponse

type CreateProductsResponse struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

type CreateRechargeRecordRequest

type CreateRechargeRecordRequest struct {
	OrgID       string `json:"orgId" binding:"required"`
	DeptID      string `json:"deptId" binding:"required"`
	StationID   string `json:"stationId" binding:"required"`
	StationName string `json:"stationName" binding:"required"`
	TxID        string `json:"txId" binding:"required"`
	ProductID   string `json:"productId" binding:"required"`
	ProductName string `json:"productName" binding:"required"`
	Name        string `json:"name" binding:"required"`
	Phone       string `json:"phone" binding:"required"`
	IDCard      string `json:"idCard" binding:"required"`
	Sex         string `json:"sex" binding:"required"`
	MemberID    string `json:"memberId" binding:"required"`
	Status      uint8  `json:"status" binding:"required"`
	TotalFee    int    `json:"totalFee" binding:"required"`
	OpenID      string `json:"openId" binding:"required"`
}

type CreateRechargeRecordResponse

type CreateRechargeRecordResponse struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

type CreateStationsRequest added in v0.13.28

type CreateStationsRequest struct {
	OrgID   string `json:"orgId" binding:"required"`
	DeptID  string `json:"deptId" binding:"required"`
	Name    string `json:"name" binding:"required"`
	Address string `json:"address" `
	Leader  string `json:"leader" `
	Phone   string `json:"phone" `
	Order   uint8  `json:"order" binding:"required"`
}

type CreateStationsResponse added in v0.13.28

type CreateStationsResponse struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

func CreateStations added in v0.13.28

func CreateStations(req *CreateStationsRequest) (*CreateStationsResponse, error)

type DeleteApplyPersonQuery

type DeleteApplyPersonQuery struct {
	OrgID string `form:"orgId" binding:"required"`
}

type DeleteApplyPersonResponse

type DeleteApplyPersonResponse struct {
	// contains filtered or unexported fields
}

type DeleteProductTypeQuery added in v0.13.37

type DeleteProductTypeQuery struct {
	OrgID string `form:"orgId" binding:"required"`
}

type DeleteProductTypeResponse added in v0.13.37

type DeleteProductTypeResponse struct {
	// contains filtered or unexported fields
}

type DeleteProductsQuery

type DeleteProductsQuery struct {
	OrgID string `form:"orgId" binding:"required"`
}

type DeleteProductsResponse

type DeleteProductsResponse struct {
	// contains filtered or unexported fields
}

type DeleteRechargeRecordQuery

type DeleteRechargeRecordQuery struct {
	OrgID string `form:"orgId" binding:"required"`
}

type DeleteRechargeRecordResponse

type DeleteRechargeRecordResponse struct {
	// contains filtered or unexported fields
}

type DeleteStationsQuery added in v0.13.28

type DeleteStationsQuery struct {
	OrgID string `form:"orgId" binding:"required"`
}

type DeleteStationsResponse added in v0.13.28

type DeleteStationsResponse struct {
	// contains filtered or unexported fields
}

type GetApplyPersonsQuery

type GetApplyPersonsQuery struct {
	OrgID     string `form:"orgId"`
	ID        string `form:"id"`
	DeptIDs   string `form:"deptIds"`
	StationID string `form:"stationId"`
	Name      string `form:"name"`
	Phone     string `form:"phone"`
	IDCard    string `form:"idCard"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetApplyPersonsResponse

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

type GetProductByIDQuery added in v0.13.29

type GetProductByIDQuery struct {
	OrgID string `form:"orgId"`
	ID    string `form:"id"`
}

type GetProductByIDResponse added in v0.13.29

type GetProductByIDResponse struct {
	Info *ProductsInfo `json:"info"`
	// contains filtered or unexported fields
}

func GetProduct added in v0.13.29

type GetProductTypesQuery added in v0.13.37

type GetProductTypesQuery struct {
	OrgID    string `form:"orgId"`
	ID       string `form:"id"`
	Name     string `form:"name"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetProductTypesResponse added in v0.13.37

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

func GetProductTypes added in v0.13.37

func GetProductTypes(req *GetProductTypesQuery) (*GetProductTypesResponse, error)

type GetProductsesQuery

type GetProductsesQuery struct {
	OrgID    string `form:"orgId"`
	ID       string `form:"id"`
	Name     string `form:"name"`
	Status   uint8  `form:"status"`
	TypeID   string `form:"typeId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetProductsesResponse

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

func GetProductses

func GetProductses(req *GetProductsesQuery) (*GetProductsesResponse, error)

type GetRechargeRecordByTxIDQuery added in v0.13.31

type GetRechargeRecordByTxIDQuery struct {
	TxID string `form:"txId"`
}

type GetRechargeRecordByTxIDResponse added in v0.13.31

type GetRechargeRecordByTxIDResponse struct {
	Info RechargeRecordInfo `json:"info"`
	// contains filtered or unexported fields
}

func GetRechargeRecordByTxID added in v0.13.31

func GetRechargeRecordByTxID(req *GetRechargeRecordByTxIDQuery) (*GetRechargeRecordByTxIDResponse, error)

type GetRechargeRecordsQuery

type GetRechargeRecordsQuery struct {
	OrgID     string `form:"orgId"`
	ID        string `form:"id"`
	DeptIDs   string `form:"deptIds"`
	StationID string `form:"stationId"`
	TxID      string `form:"txId"`
	ProductID string `form:"productId"`
	Name      string `form:"name"`
	Phone     string `form:"phone"`
	IDCard    string `form:"idCard"`
	Status    uint8  `form:"status"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetRechargeRecordsResponse

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

type GetStationByIDQuery added in v0.13.29

type GetStationByIDQuery struct {
	OrgID string `form:"orgId"`
	ID    string `form:"id"`
}

type GetStationByIDResponse added in v0.13.29

type GetStationByIDResponse struct {
	Info *StationsInfo `json:"info"`
	// contains filtered or unexported fields
}

func GetStation added in v0.13.29

type GetStationsesQuery added in v0.13.28

type GetStationsesQuery struct {
	OrgID    string `form:"orgId"`
	ID       string `form:"id"`
	DeptID   string `form:"deptId"`
	Name     string `form:"name"`
	Leader   string `form:"leader"`
	Phone    string `form:"phone"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetStationsesResponse added in v0.13.28

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

func GetStationses added in v0.13.28

func GetStationses(req *GetStationsesQuery) (*GetStationsesResponse, error)

type ProductTypeInfo added in v0.13.37

type ProductTypeInfo struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Sort  uint8  `json:"sort"`
	OrgID string `json:"orgId"`
}

type ProductsInfo

type ProductsInfo struct {
	ID            string  `json:"id"`
	Name          string  `json:"name"`
	OriginalPrice float64 `json:"originalPrice"`
	CurrentPrice  float64 `json:"currentPrice"`
	Status        uint8   `json:"status"`
	Order         uint8   `json:"order"`
	OrgID         string  `json:"orgId"`
	TypeID        string  `json:"typeId"`
	ImgObj        string  `json:"imgObj"`
}

type RechargeRecordInfo

type RechargeRecordInfo struct {
	ID          string `json:"id"`
	DeptID      string `json:"deptId"`
	StationID   string `json:"stationId"`
	StationName string `json:"stationName"`
	TxID        string `json:"txId"`
	ProductID   string `json:"productId"`
	ProductName string `json:"productName"`
	Name        string `json:"name"`
	Phone       string `json:"phone"`
	IDCard      string `json:"idCard"`
	Sex         string `json:"sex"`
	MemberID    string `json:"memberId"`
	Status      uint8  `json:"status"`
	TotalFee    int    `json:"totalFee"`
	OpenID      string `json:"openId"`
	OrgID       string `json:"orgId"`
}

type StationsInfo added in v0.13.28

type StationsInfo struct {
	ID      string `json:"id"`
	DeptID  string `json:"deptId"`
	Name    string `json:"name"`
	Address string `json:"address"`
	Leader  string `json:"leader"`
	Phone   string `json:"phone"`
	QrObj   string `json:"qrObj"`
	Order   uint8  `json:"order"`
	OrgID   string `json:"orgId"`
}

type UpdateProductTypeRequest added in v0.13.37

type UpdateProductTypeRequest struct {
	OrgID string `json:"orgId" binding:"required"`
	ID    string `json:"id" binding:"required"`
	Name  string `json:"name"`
	Sort  uint8  `json:"sort"`
}

type UpdateProductTypeResponse added in v0.13.37

type UpdateProductTypeResponse struct {
	// contains filtered or unexported fields
}

type UpdateProductsRequest

type UpdateProductsRequest struct {
	OrgID         string  `json:"orgId" binding:"required"`
	ID            string  `json:"id" binding:"required"`
	Name          string  `json:"name"`
	OriginalPrice float64 `json:"originalPrice"`
	CurrentPrice  float64 `json:"currentPrice"`
	Status        uint8   `json:"status"`
	Order         uint8   `json:"order"`
	TypeID        string  `json:"typeId"`
	ImgObj        string  `json:"imgObj"`
}

type UpdateProductsResponse

type UpdateProductsResponse struct {
	// contains filtered or unexported fields
}

type UpdateRechargeRecordRequest

type UpdateRechargeRecordRequest struct {
	OrgID  string `json:"orgId" binding:"required"`
	ID     string `json:"id" binding:"required"`
	Status uint8  `json:"status"`
}

type UpdateRechargeRecordResponse

type UpdateRechargeRecordResponse struct {
	// contains filtered or unexported fields
}

type UpdateStationsRequest added in v0.13.28

type UpdateStationsRequest struct {
	OrgID   string `json:"orgId" binding:"required"`
	ID      string `json:"id" binding:"required"`
	Name    string `json:"name"`
	Address string `json:"address"`
	Leader  string `json:"leader"`
	Phone   string `json:"phone"`
	DeptID  string `json:"deptId"`
	Order   uint8  `json:"order"`
}

type UpdateStationsResponse added in v0.13.28

type UpdateStationsResponse struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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