trans

package
v0.0.0-...-df163ab Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIfObjectExist

func ValidateIfObjectExist(filter bson.M, userno string, clientid string) (bool, error)

Types

type TranCode

type TranCode struct {
	ID             string           "json:'_id'"
	UUID           string           "json:'uuid'"
	TranCodeName   string           "json:'trancodename'"
	Version        string           "json:'version'"
	IsDefault      bool             "json:'isdefault'"
	Status         int              "json:'status'"
	Firstfuncgroup string           "json:'firstfuncgroup'"
	SystemData     types.SystemData "json:'system'"
	Description    string           "json:'description'"
}

type TranCodeController

type TranCodeController struct {
}

func (*TranCodeController) DeleteRemoteTestCache

func (e *TranCodeController) DeleteRemoteTestCache(ctx *gin.Context)

func (*TranCodeController) Execute

func (e *TranCodeController) Execute(Code string, externalinputs map[string]interface{}, user string, clientid string) (map[string]interface{}, error)

func (*TranCodeController) ExecuteTranCode

func (e *TranCodeController) ExecuteTranCode(ctx *gin.Context)

ExecuteTranCode executes the transaction code based on the request context. It retrieves the user information from the request, fetches the transaction code data, and executes the transaction flow. The outputs of the transaction are returned in the response.

func (*TranCodeController) GetTranCodeDetailFromRespository

func (e *TranCodeController) GetTranCodeDetailFromRespository(ctx *gin.Context)

func (*TranCodeController) GetTranCodeListFromRespository

func (e *TranCodeController) GetTranCodeListFromRespository(ctx *gin.Context)

func (*TranCodeController) RemoteTestTranCode

func (e *TranCodeController) RemoteTestTranCode(ctx *gin.Context)

func (*TranCodeController) TestTranCode

func (e *TranCodeController) TestTranCode(ctx *gin.Context)

func (*TranCodeController) TestbyTestData

func (e *TranCodeController) TestbyTestData(ctx *gin.Context)

func (*TranCodeController) TranCodeRevision

func (e *TranCodeController) TranCodeRevision(ctx *gin.Context)

func (*TranCodeController) UnitTest

func (e *TranCodeController) UnitTest(ctx *gin.Context)

UnitTest is a handler function for performing unit tests on transaction codes. It retrieves the user information from the request context, gets the transaction code data, and executes the unit test using the transaction code and system sessions. The outputs of the unit test are returned in the response.

func (*TranCodeController) UpdateTranCodeToRespository

func (e *TranCodeController) UpdateTranCodeToRespository(ctx *gin.Context)

type TranCodeData

type TranCodeData struct {
	TranCode string                 `json:"code"`
	Version  string                 `json:"version"`
	UUID     string                 `json:"uuid"`
	Data     map[string]interface{} `json:"data"`
	Inputs   map[string]interface{} `json:"inputs"`
}

Jump to

Keyboard shortcuts

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