mbim

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 DeleteInvoice(invoiceId string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func UpdateInvoice

func UpdateInvoice(params *UpdateInvoiceRequest) error

Types

type ChangeInvoiceRequest

type ChangeInvoiceRequest struct {
	UserID    string `json:"userId"`
	InvoiceID string `json:"invoiceId"`
}

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 GetAllInvoicesQuery struct {
	UserID string `json:"userId"`
	OrgIDs string `json:"orgIds"` //逗号分割
}

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 GetInvoicesQuery struct {
	ID           string `form:"id"`
	CompanyName  string `form:"companyName"`
	DutyNum      string `form:"dutyNum"`
	CompanyPhone string `form:"companyPhone"`
	InvoiceType  uint8  `form:"invoiceType"`
	OwnerID      string `form:"ownerId"`
	PageNo       int    `form:"pageNo"`
	PageSize     int    `form:"pageSize"`
}

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"`
}

Jump to

Keyboard shortcuts

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