model_name_service

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDocumentId

func GetDocumentId(filterName string, filterVal interface{}, Collection string) string

Types

type ServiceModel

type ServiceModel struct{}

func (ServiceModel) SendApi

func (s ServiceModel) SendApi(data []byte, url string, requestType string, header string) string

requestType(POST,GET,PUT,Delete)

func (ServiceModel) SendApiBasicAuthen

func (s ServiceModel) SendApiBasicAuthen(data []byte, url string, requestType string, headers map[string]interface{}) (string, string)

func (ServiceModel) SendApiBearerHeader added in v1.4.0

func (s ServiceModel) SendApiBearerHeader(data []byte, url string, requestType string, headers map[string]interface{}) (string, string)

ส่งข้อมูล

func (ServiceModel) SendApiHeaders

func (s ServiceModel) SendApiHeaders(data []byte, url string, requestType string, headers map[string]interface{}) (string, string)

func (ServiceModel) SendApiKey

func (s ServiceModel) SendApiKey(data []byte, url string, requestType string, headers map[string]interface{}) (string, string)

func (ServiceModel) SendApiNotify

func (s ServiceModel) SendApiNotify(data []byte, url string, requestType string, ChannelToken string) (string, string)

func (ServiceModel) SendApiWithStatus added in v1.4.0

func (s ServiceModel) SendApiWithStatus(data []byte, url string, requestType string, header string) (string, string)

เพิ่ม Status

func (ServiceModel) SendPostFileRequest

func (s ServiceModel) SendPostFileRequest(url string, filename string, filetype string) []byte

/ send image to upload

Jump to

Keyboard shortcuts

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