lowcode

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, client *http.Client, uri string, values url.Values, userID string, entity interface{}) error

Get Get

Types

type FindPermitResp

type FindPermitResp struct {
	ID          string             `json:"id"`
	RoleID      string             `json:"roleID"`
	Path        string             `json:"path"`
	Params      models.FiledPermit `json:"params"`
	Response    models.FiledPermit `json:"response"`
	Condition   models.Condition   `json:"condition"`
	Methods     string             `json:"methods"`
	ResponseAll bool               `json:"responseAll"`
	ParamsAll   bool               `json:"paramsAll"`
}

type Form

type Form struct {
	// contains filtered or unexported fields
}

func NewForm

func NewForm(conf client.Config) *Form

func (*Form) GetCacheMatchRole

func (f *Form) GetCacheMatchRole(ctx context.Context, userID, depID, appID string) (*GetMatchRoleResp, error)

func (*Form) GetPermit

func (f *Form) GetPermit(ctx context.Context, appID, roleID, path, methods string) (*FindPermitResp, error)

type GetMatchRoleResp

type GetMatchRoleResp struct {
	RoleID string          `json:"id"`
	Types  models.RoleType `json:"type"`
}

type SaveRoleUsersResp

type SaveRoleUsersResp struct {
}

type SearchAPI

type SearchAPI interface {
	Subordinate(ctx context.Context, userID string) (*SubordinateResp, error)
}

SearchAPI SearchAPI

func NewSearchAPI

func NewSearchAPI(conf *config.Config) SearchAPI

type SubordinateResp

type SubordinateResp struct {
	Users []*users `json:"users"`
	Total int64    `json:"total"`
}

Jump to

Keyboard shortcuts

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