permit

package
v0.0.0-...-4109721 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package permit provides a core business API of a user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContent

func CreateContent(operationType string, perm Permit) (string, error)

CreateContent creates a message permit content, this content is encoded in base64.

Types

type Application

type Application struct {
	ID        int       `json:"application_id"`
	Status    string    `json:"status"`
	CatalogID uuid.UUID `json:"catalog_id"`
	Form      any       `json:"form"`
}

An Application contains the data needed to apply for a permit.

type Permit

type Permit struct {
	Application Application `json:"application"`
}

A Permit is the payload of a message permit.

func New

func New(applicationBody []byte) (Permit, error)

New is a factory function to create a new permit.

Jump to

Keyboard shortcuts

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