helper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONST_DataRequestDto *printdto.DataRequestDto = &printdto.DataRequestDto{
	Metas:   printconst.Metas,
	DataUrl: "http://192.168.13.212:8080/list/v1/contract/sale-detail",
	Token:   "MTY2OTYwNDMyNnxEdi1CQkFFQ180SUFBUkFCRUFBQVJfLUNBQUVHYzNSeWFXNW5EQThBRFhObGMzTnBiMjVmZEc5clpXNEdjM1J5YVc1bkRDSUFJSE5rTkd0SWNtUTFkMWRaUkU1dFRXaGxZVloxV0VwYWJWTkxSMGw0U1hkR3y6PVVf1S8Iz97bG9gBtAiH3JsbuTutu5UqhQXC1gqIOA==",
	DataBody: map[string]interface{}{
		"order_id": "809743111957250049",
	},
	Method: "POST",
}

listMeta := datareq.FindTableListMeta("{{订单.仓库地址}}") single := datareq.FindTableSingleMeta("{分拣单.仓库地址}") https://www.ichub.com/nodeapi/hub-strapi/sign/querySignQuota https://xuri.me/excelize/zh-hans/workbook.html#GetPageMargins

Functions

func ParseData

func ParseData(queryResultDto *printdto.DataResultDto)

Types

type HttpHelper

type HttpHelper struct {
	HttpDataRequest *printdto.HttpRequestDto
	DataResultDto   *printdto.DataResultDto

	//singleMetadata
	MapResultData map[string]*gjson.Result
	MapMetadata   map[string]*printdto.MetadataDto

	//listMetadata
	ListResultData *gjson.Result
	ListMetadata   *printdto.MetadataDto
}

{开票.开票电话信息} {{开票.开票电话信息}}

func RetreiveData

func RetreiveData(dto *printdto.DataRequestDto) (msgHelper *HttpHelper)

func RetreiveDataDefault

func RetreiveDataDefault(dto *printdto.DataRequestDto) (msgHelper *HttpHelper)

func (*HttpHelper) FindListFieldData

func (h *HttpHelper) FindListFieldData(vars string) interface{}

vars {{订单.仓库地址}} *、

func (*HttpHelper) FindListFieldDataBy

func (h *HttpHelper) FindListFieldDataBy(vars string, irow int) interface{}

vars {{订单.仓库地址}} irow 数据行

func (*HttpHelper) FindSingleFieldData

func (h *HttpHelper) FindSingleFieldData(vars string) interface{}

fmt.Println(" ConnTime :", ti.ConnTime) fmt.Println(" TCPConnTime :", ti.TCPConnTime) fmt.Println(" TLSHandshake :", ti.TLSHandshake) fmt.Println(" ServerTime :", ti.ServerTime) fmt.Println(" ResponseTime :", ti.ResponseTime) fmt.Println(" TotalTime :", ti.TotalTime) fmt.Println(" IsConnReused :", ti.IsConnReused) fmt.Println(" IsConnWasIdle :", ti.IsConnWasIdle) fmt.Println(" ConnIdleTime :", ti.ConnIdleTime) fmt.Println(" RequestAttempt:", ti.RequestAttempt) fmt.Println(" RemoteAddr :", ti.RemoteAddr.String())

vars {订单.仓库地址} *

func (*HttpHelper) HttpGetData

func (h *HttpHelper) HttpGetData(request *printdto.HttpRequestDto) *printdto.DataResultDto

Explore response object fmt.Println("Response Info:") fmt.Println(" Error :", err) fmt.Println(" Status Code:", resp.StatusCode()) fmt.Println(" Status :", resp.Status()) fmt.Println(" Proto :", resp.Proto()) fmt.Println(" Time :", resp.Time()) fmt.Println(" Received At:", resp.ReceivedAt()) fmt.Println(" DataBody : ", string(resp.DataBody()))

func (*HttpHelper) HttpPostData

func (h *HttpHelper) HttpPostData(request *printdto.HttpRequestDto) *printdto.DataResultDto

func (*HttpHelper) ParseDatas

func (h *HttpHelper) ParseDatas(dataRequestDto *printdto.DataRequestDto) *printdto.DataResultDto

func (*HttpHelper) ParseListData

func (h *HttpHelper) ParseListData(vars string) *HttpHelper

func (*HttpHelper) ParseListDataDefault

func (h *HttpHelper) ParseListDataDefault() *HttpHelper

func (*HttpHelper) ParseMetadata

func (h *HttpHelper) ParseMetadata(metas string, dto *printdto.DataRequestDto)

func (*HttpHelper) ParseSingleData

func (h *HttpHelper) ParseSingleData(vars string) *HttpHelper

Jump to

Keyboard shortcuts

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