Documentation ¶
Index ¶
- func ChangeInvoice(params *ChangeInvoiceRequest) error
- func CreateInvoice(params *CreateInvoiceRequest) (string, error)
- func DeleteInvoice(invoiceId string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func UpdateInvoice(params *UpdateInvoiceRequest) error
- type ChangeInvoiceRequest
- type ChangeInvoiceResponse
- type CreateInvoiceRequest
- type CreateInvoiceResponse
- type DeleteInvoiceResponse
- type GetAllInvoiceResponse
- type GetAllInvoiceResult
- type GetAllInvoicesQuery
- type GetCurInvoiceQuery
- type GetCurInvoiceResponse
- type GetInvoiceResponse
- type GetInvoicesQuery
- type InvoiceInfo
- type UpdateInvoiceRequest
- type UpdateInvoiceResponse
- type UpdateTangentNameAndAddressRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeInvoice ¶
func ChangeInvoice(params *ChangeInvoiceRequest) error
func CreateInvoice ¶
func CreateInvoice(params *CreateInvoiceRequest) (string, error)
func DeleteInvoice ¶
func UpdateInvoice ¶
func UpdateInvoice(params *UpdateInvoiceRequest) error
Types ¶
type ChangeInvoiceRequest ¶
type ChangeInvoiceResponse ¶
type ChangeInvoiceResponse struct {
// contains filtered or unexported fields
}
type CreateInvoiceRequest ¶
type CreateInvoiceRequest struct { CompanyName string `json:"companyName"` DutyNum string `json:"dutyNum"` Bank string `json:"bank"` Account string `json:"account"` CompanyAddress string `json:"companyAddress"` CompanyPhone string `json:"companyPhone"` Remark string `json:"remark"` Type int8 `json:"type"` OwnerID string `json:"ownerId"` }
type CreateInvoiceResponse ¶
type CreateInvoiceResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type DeleteInvoiceResponse ¶
type DeleteInvoiceResponse struct {
// contains filtered or unexported fields
}
type GetAllInvoiceResponse ¶
type GetAllInvoiceResponse struct { Infos *GetAllInvoiceResult `json:"infos"` // contains filtered or unexported fields }
type GetAllInvoiceResult ¶
type GetAllInvoiceResult struct { TangentInvoices []InvoiceInfo `json:"tangentInvoices"` UserInvoices []InvoiceInfo `json:"userInvoices"` CurInvoice *InvoiceInfo `json:"curInvoice"` }
func GetAllInvoices ¶
func GetAllInvoices(params *GetAllInvoicesQuery) (*GetAllInvoiceResult, error)
type GetAllInvoicesQuery ¶
type GetCurInvoiceQuery ¶
type GetCurInvoiceQuery struct {
UserID string `form:"userId"`
}
type GetCurInvoiceResponse ¶
type GetCurInvoiceResponse struct { Info *InvoiceInfo `json:"info"` // contains filtered or unexported fields }
type GetInvoiceResponse ¶
type GetInvoiceResponse struct { PageNo int `json:"pageNo" binding:"required"` TotalCount int64 `json:"totalCount" binding:"required"` Infos []InvoiceInfo `json:"infos" binding:"required"` // contains filtered or unexported fields }
type GetInvoicesQuery ¶
type InvoiceInfo ¶
type InvoiceInfo struct { ID string `json:"id"` CompanyName string `json:"companyName"` DutyNum string `json:"dutyNum"` Bank string `json:"bank"` Account string `json:"account"` CompanyAddress string `json:"companyAddress"` CompanyPhone string `json:"companyPhone"` Remark string `json:"remark"` Type int8 `json:"type"` OwnerID string `json:"ownerId"` }
func GetCurInvoice ¶
func GetCurInvoice(params *GetCurInvoiceQuery) (*InvoiceInfo, error)
func GetInvoices ¶
func GetInvoices(params *GetInvoicesQuery) ([]InvoiceInfo, int64, error)
type UpdateInvoiceRequest ¶
type UpdateInvoiceRequest struct { ID string `json:"id"` CompanyName string `json:"companyName"` DutyNum string `json:"dutyNum"` Bank string `json:"bank"` Account string `json:"account"` CompanyAddress string `json:"companyAddress"` CompanyPhone string `json:"companyPhone"` Remark string `json:"remark"` Type int8 `json:"type"` OwnerID string `json:"ownerId"` }
type UpdateInvoiceResponse ¶
type UpdateInvoiceResponse struct {
// contains filtered or unexported fields
}
type UpdateTangentNameAndAddressRequest ¶
type UpdateTangentNameAndAddressRequest struct { TangentId string `json:"TangentId"` TangentName string `json:"tangentName"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` Address string `json:"address"` LocationAddress string `json:"locationAddress"` Introduction string `json:"introduction"` Phone string `json:"phone"` }
Click to show internal directories.
Click to hide internal directories.