Documentation ¶
Index ¶
- func DeleteApplyPerson(orgId, id string) error
- func DeleteProductType(orgId, id string) error
- func DeleteProducts(orgId, id string) error
- func DeleteRechargeRecord(orgId, id string) error
- func DeleteStations(orgId, id string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func UpdateProductType(req *UpdateProductTypeRequest) error
- func UpdateProducts(req *UpdateProductsRequest) error
- func UpdateRechargeRecord(req *UpdateRechargeRecordRequest) error
- func UpdateStations(req *UpdateStationsRequest) error
- type ApplyPersonInfo
- type CreateApplyPersonRequest
- type CreateApplyPersonResponse
- type CreateProductTypeRequest
- type CreateProductTypeResponse
- type CreateProductsRequest
- type CreateProductsResponse
- type CreateRechargeRecordRequest
- type CreateRechargeRecordResponse
- type CreateStationsRequest
- type CreateStationsResponse
- type DeleteApplyPersonQuery
- type DeleteApplyPersonResponse
- type DeleteProductTypeQuery
- type DeleteProductTypeResponse
- type DeleteProductsQuery
- type DeleteProductsResponse
- type DeleteRechargeRecordQuery
- type DeleteRechargeRecordResponse
- type DeleteStationsQuery
- type DeleteStationsResponse
- type GetApplyPersonsQuery
- type GetApplyPersonsResponse
- type GetProductByIDQuery
- type GetProductByIDResponse
- type GetProductTypesQuery
- type GetProductTypesResponse
- type GetProductsesQuery
- type GetProductsesResponse
- type GetRechargeRecordByTxIDQuery
- type GetRechargeRecordByTxIDResponse
- type GetRechargeRecordsQuery
- type GetRechargeRecordsResponse
- type GetStationByIDQuery
- type GetStationByIDResponse
- type GetStationsesQuery
- type GetStationsesResponse
- type ProductTypeInfo
- type ProductsInfo
- type RechargeRecordInfo
- type StationsInfo
- type UpdateProductTypeRequest
- type UpdateProductTypeResponse
- type UpdateProductsRequest
- type UpdateProductsResponse
- type UpdateRechargeRecordRequest
- type UpdateRechargeRecordResponse
- type UpdateStationsRequest
- type UpdateStationsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteApplyPerson ¶
func DeleteProductType ¶ added in v0.13.37
func DeleteProducts ¶
func DeleteRechargeRecord ¶
func DeleteStations ¶ added in v0.13.28
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 }
func CreateApplyPerson ¶
func CreateApplyPerson(req *CreateApplyPersonRequest) (*CreateApplyPersonResponse, error)
type CreateProductTypeRequest ¶ added in v0.13.37
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 }
func CreateProducts ¶
func CreateProducts(req *CreateProductsRequest) (*CreateProductsResponse, error)
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 }
func CreateRechargeRecord ¶
func CreateRechargeRecord(req *CreateRechargeRecordRequest) (*CreateRechargeRecordResponse, error)
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 GetApplyPersonsResponse ¶
type GetApplyPersonsResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []ApplyPersonInfo `json:"infos"` // contains filtered or unexported fields }
func GetApplyPersons ¶
func GetApplyPersons(req *GetApplyPersonsQuery) (*GetApplyPersonsResponse, error)
type GetProductByIDQuery ¶ added in v0.13.29
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
func GetProduct(req *GetProductByIDQuery) (*GetProductByIDResponse, error)
type GetProductTypesQuery ¶ added in v0.13.37
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 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 }
func GetRechargeRecords ¶
func GetRechargeRecords(req *GetRechargeRecordsQuery) (*GetRechargeRecordsResponse, error)
type GetStationByIDQuery ¶ added in v0.13.29
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
func GetStation(req *GetStationByIDQuery) (*GetStationByIDResponse, error)
type GetStationsesQuery ¶ added in v0.13.28
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 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 UpdateProductTypeRequest ¶ added in v0.13.37
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 UpdateRechargeRecordResponse ¶
type UpdateRechargeRecordResponse struct {
// contains filtered or unexported fields
}
type UpdateStationsRequest ¶ added in v0.13.28
type UpdateStationsResponse ¶ added in v0.13.28
type UpdateStationsResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.