mbrf

package
v0.14.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func UploadForm

func UploadForm(req *UploadFormRequest) error

Types

type FormInfo

type FormInfo struct {
	TangentID  string     `json:"tangentId"`
	ID         string     `json:"id"`
	UserID     string     `json:"userId"`
	Items      []ItemInfo `json:"items"`
	Remark     string     `json:"remark"`
	CreateTime string     `json:"createTime"`
}

func GetForm

func GetForm(tangentID, id, createTime string, userIDs []string, pageNo, pageSize int) ([]FormInfo, int64, error)

type GetFormsQuery

type GetFormsQuery struct {
	TangentID  string `form:"tangentId"`
	UserIDs    string `form:"userIds"`
	ID         string `form:"id"`
	CreateTime string `form:"createTime"`
	PageNo     int    `form:"pageNo"`
	PageSize   int    `form:"pageSize"`
}

type GetFormsResponse

type GetFormsResponse struct {
	PageNo     int        `json:"pageNo"`
	TotalCount int64      `json:"totalCount"`
	Infos      []FormInfo `json:"infos"`
	// contains filtered or unexported fields
}

type Item

type Item struct {
	K uint8  `json:"k"`
	V string `json:"v"`
}

type ItemInfo

type ItemInfo struct {
	K          int    `json:"k"`
	V          string `json:"v"`
	CreateTime string `json:"createTime"`
}

type UploadFormRequest

type UploadFormRequest struct {
	TangentID  string `json:"tangentId"`
	UserID     string `json:"userId"`
	Items      []Item `json:"items"`
	FormType   uint8  `json:"formType"`
	Remark     string `json:"remark"`
	CreateTime string `json:"createTime"`
}

Jump to

Keyboard shortcuts

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