api_um

package
v0.0.0-...-23a18c0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UmAppAuth

func UmAppAuth(umAuthContext model.UmAuthContext) error

func UmAuthenticate

func UmAuthenticate(authCtxMap map[string]string, credential *model.CredentialDto) (bool, string, error)

Types

type UmAuthResponse

type UmAuthResponse struct {
	Code     int    `json:"code"`
	Desc     string `json:"desc"`
	Id       string `json:"id"`
	Org      string `json:"org"`
	Dept     string `json:"dept"`
	AcType   int    `json:"actype"`
	Email    string `json:"email"`
	UserName string `json:"userName"`
	ExpDate  string `json:"expDate"`
}

type UmPermissionResp

type UmPermissionResp struct {
	RetCode int    `json:"retCode"`
	Id      string `json:"id"`
	Tok     string `json:"tok"`
	Auth    string `json:"auth"`
	ExpTime int    `json:"expTime"`
}

type UmRoleItem

type UmRoleItem struct {
	RoleCode   string `json:"roleCode"`
	RoleName   string `json:"roleName"`
	RoleNameCn string `json:"roleNameCn"`
	Org        string `json:"org"`
	SystemId   string `json:"systemId"`
	DelFlag    string `json:"delFlag"`
}

type UmToken

type UmToken struct {
	Token   string `json:"tok"`
	Auth    string `json:"auth"`
	ExpTime int64  `json:"expTime"`
}

type UmUserRoleItem

type UmUserRoleItem struct {
	UserId     string `json:"userId"`
	RoleCode   string `json:"roleCode"`
	Org        string `json:"org"`
	ExpireTime string `json:"expireTime,omitempty" `
	SystemId   string `json:"systemId"`
	DelFlag    string `json:"delFlag"`
}

Jump to

Keyboard shortcuts

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