types

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OAutherWayBrowserWX = "wx"

	OAutherWayActionUniLogin = "unilogin"
	OAutherWayActionScan     = "scan"
	OAutherWayActionJump     = "jump"
	OAutherWayActionCaptcha  = "captcha"

	PlatformApp        = "app"              // App
	PlatformWeb        = "web"              // Web
	PlatformWebYiBan   = "web-yiban"        // 易班 app-web
	PlatformWebWeiXin  = "web-weixin"       // 微信 app-web
	PlatformWebAliPay  = "web-alipay"       // 支付宝 app-web
	PlatformWebDouYin  = "web-douyin"       // 抖音 app-web
	PlatformMPWeiXin   = "mp-weixin"        // 微信小程序
	PlatformMPAlipay   = "mp-alipay"        // 支付宝小程序
	PlatformMPBaidu    = "mp-baidu"         // 百度小程序
	PlatformMPTouTiao  = "mp-toutiao"       // 抖音小程序
	PlatformMPLark     = "mp-lark"          // 飞书小程序
	PlatformMPQQ       = "mp-qq"            // QQ小程序
	PlatformMPKuaiShou = "mp-kuaishou"      // 快手小程序
	PlatformMPJD       = "mp-jd"            // 京东小程序
	PlatformMP360      = "mp-360"           // 360小程序
	PlatformMPHarmony  = "mp-harmony"       // 鸿蒙元服务
	PlatformMPQuickApp = "quickapp-webview" // 快应用通用(包含联盟、华为)
)
View Source
const (
	InfoKey = "x-md-global-info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllDictionaryValueRequest

type AllDictionaryValueRequest struct {
	DictionaryId uint32  `json:"dictionaryId"`
	Label        *string `json:"label"`
	Value        *string `json:"value"`
	Status       *bool   `json:"status"`
}

type AllRoleEntityRequest

type AllRoleEntityRequest struct {
	RoleIds  []uint32 `json:"roleId"`
	EntityId *uint32  `json:"entityId"`
	Action   string   `json:"action"`
}

type AuthorizeBase added in v1.2.8

type AuthorizeBase struct {
	Iat int64 `json:"iat,omitempty"`
	Exp int64 `json:"exp,omitempty"`
}

type AuthorizeInfo added in v1.2.8

type AuthorizeInfo struct {
	*AuthorizeBase
	AppKey  string `json:"appKey"`
	UserId  uint32 `json:"userId"`
	DeptId  uint32 `json:"deptId"`
	JobId   uint32 `json:"jobId"`
	IsAdmin bool   `json:"isAdmin"` // 是否为超级管理员(绕过所有API权限检查)
}

func (AuthorizeInfo) ToMap added in v1.2.8

func (az AuthorizeInfo) ToMap() map[string]any

type CacheMenu added in v1.2.8

type CacheMenu struct {
	Id   uint32 `json:"id"`
	Type string `json:"type"`
	App  string `json:"app"`
	Name string `json:"name"`
}

type Captcha added in v1.2.8

type Captcha struct {
	Uuid    string `json:"uuid"`
	Captcha string `json:"captcha"`
	Expire  uint32 `json:"expire"`
}

type CheckAuthRequest added in v1.2.8

type CheckAuthRequest struct {
	Path   string `json:"path"`
	Method string `json:"method"`
}

type CreateDeptRoleRequest added in v1.2.8

type CreateDeptRoleRequest struct {
	RoleId uint32 `json:"roleId"`
	DeptId uint32 `json:"deptId"`
	App    string `json:"app"`
}

type CreateJobRoleRequest added in v1.2.8

type CreateJobRoleRequest struct {
	RoleId uint32 `json:"roleId"`
	JobId  uint32 `json:"jobId"`
	App    string `json:"app"`
}

type CreateMenuRolesRequest

type CreateMenuRolesRequest struct {
	RoleIds []uint32 `json:"roleIds"`
	MenuId  uint32   `json:"menuId"`
}

type CreateRoleMenusRequest

type CreateRoleMenusRequest struct {
	MenuIds []uint32 `json:"menuIds"`
	RoleId  uint32   `json:"roleId"`
	App     string   `json:"app"`
}

type DeleteDeptRoleRequest added in v1.2.8

type DeleteDeptRoleRequest struct {
	DeptId uint32 `json:"deptId"`
	RoleId uint32 `json:"roleId"`
	App    string `json:"app"`
}

type DeleteDeptUsersRequest

type DeleteDeptUsersRequest struct {
	UserId uint32 `json:"userId"`
	DeptId uint32 `json:"deptId"`
}

type DeleteJobRoleRequest added in v1.2.8

type DeleteJobRoleRequest struct {
	JobId  uint32 `json:"jobId"`
	RoleId uint32 `json:"roleId"`
	App    string `json:"app"`
}

type DeleteMenuRolesRequest

type DeleteMenuRolesRequest struct {
	MenuId  uint32   `json:"menuId"`
	RoleIds []uint32 `json:"roleIds"`
}

type DeleteRoleMenusRequest

type DeleteRoleMenusRequest struct {
	MenuIds []uint32 `json:"menuIds"`
	RoleId  uint32   `json:"roleId"`
}

type DeleteUserDeptsRequest

type DeleteUserDeptsRequest struct {
	UserId uint32 `json:"userId"`
	DeptId uint32 `json:"deptId"`
}

type DictionaryValue

type DictionaryValue struct {
	Keyword string  `json:"keyword"`
	Label   string  `json:"label"`
	Value   string  `json:"value"`
	Type    *string `json:"type"`
	Extra   *string `json:"extra"`
}

type FieldOptionItem added in v1.2.10

type FieldOptionItem struct {
	Value string `json:"value"`
	Name  string `json:"name"`
}

FieldOptionItem 字段选项枚举项

type FieldOptionsReply added in v1.2.10

type FieldOptionsReply struct {
	Types []FieldOptionItem `json:"types"` // 组件类型列表
	Rules []FieldOptionItem `json:"rules"` // 校验规则类型列表
}

FieldOptionsReply 字段枚举配置响应

type FillInfo added in v1.2.10

type FillInfo struct {
	Type    string          `json:"type"`
	Keyword string          `json:"keyword"`
	Name    string          `json:"name"`
	Value   *structpb.Value `json:"value"`
}

type GetAuthorizeRequest added in v1.2.8

type GetAuthorizeRequest struct {
	AppId  uint32 `json:"appId"`
	UserId uint32 `json:"userId"`
}

type GetCurrentUserRequest

type GetCurrentUserRequest struct {
	App *string `json:"app"`
}

type GetDictionaryRequest

type GetDictionaryRequest struct {
	Id      *uint32 `json:"id"`
	Keyword *string `json:"keyword"`
}

type GetMenuRoleIdsRequest

type GetMenuRoleIdsRequest struct {
	MenuId uint32 `json:"menuId"`
}

type GetRoleMenuIdsRequest

type GetRoleMenuIdsRequest struct {
	RoleId uint32  `json:"roleId"`
	App    *string `json:"app"`
}

type GetRoleRequest

type GetRoleRequest struct {
	App     string `json:"app"`
	Keyword string `json:"keyword"`
}

type GetScopeResponse

type GetScopeResponse struct {
	AllDept    bool
	DeptScopes []uint32
	Rule       *hook.ConditionGroup
}

type GetSystemSettingReply

type GetSystemSettingReply struct {
	Debug              bool   `json:"debug"`
	Title              string `json:"title"`
	Description        string `json:"description"`
	Copyright          string `json:"copyright"`
	ChangePasswordType string `json:"changePasswordType"`
	Watermark          string `json:"watermark"`
}

type GetSystemSettingRequest

type GetSystemSettingRequest struct{}

type GetUserFormRequest added in v1.2.10

type GetUserFormRequest struct {
	Id    *uint32 `json:"id"`
	Scene *string `json:"scene"`
}

GetUserFormRequest 获取单个表单请求

type GetUserRequest

type GetUserRequest struct {
	Id       *uint32 `json:"id"`
	Username *string `json:"username"`
	App      *string `json:"app"`
}

type GetUserSettingRequest

type GetUserSettingRequest struct {
	App    string `json:"app"`
	UserId uint32 `json:"userId"`
}

type GetUserinfoByFieldValueRequest added in v1.2.8

type GetUserinfoByFieldValueRequest struct {
	Field string `json:"field"`
	Value string `json:"value"`
}

type ListAppFieldRequest

type ListAppFieldRequest struct {
	*page.Search
	App      string  `json:"app"`
	Keyword  *string `json:"keyword"`
	Name     *string `json:"name"`
	Required *bool   `json:"required"`
}

type ListAppFormRequest added in v1.2.10

type ListAppFormRequest struct {
	AppKeyword string `json:"appKeyword"`
}

ListAppFormRequest 查询应用表单列表请求

type ListAppOAutherRequest added in v1.2.8

type ListAppOAutherRequest struct {
	*page.Search
	App     string  `json:"app"`
	Keyword *string `json:"keyword"`
	Name    *string `json:"name"`
}

type ListAppRequest

type ListAppRequest struct {
	*page.Search
	InIds   []uint32 `json:"inIds"`
	Keyword *string  `json:"keyword"`
	Name    *string  `json:"name"`
	Status  *bool    `json:"status"`
	Type    *string  `json:"type"`
}

type ListAuthLogRequest

type ListAuthLogRequest struct {
	page.Search
	Username   string  `json:"username"`
	UserId     *uint32 `json:"userId"`
	CreatedAts []int64 `json:"createdAts"`
	App        *string `json:"app"`
}

type ListAuthorizeRequest added in v1.2.8

type ListAuthorizeRequest struct {
	*page.Search
	UserId *uint32  `json:"userId"`
	AppIds []uint32 `json:"appIds"`
}

type ListDeptClassifyRequest

type ListDeptClassifyRequest struct {
	*page.Search
	App    string  `json:"app"`
	Name   *string `json:"name"`
	Status *bool   `json:"status"`
}

type ListDeptRequest

type ListDeptRequest struct {
	App        string   `json:"app"`
	InIds      []uint32 `json:"inIds"`
	Name       *string  `json:"name"`
	Keyword    *string  `json:"keyword"`
	ClassifyId *uint32  `json:"classifyId"`
	Status     *bool    `json:"status"`
}

type ListDeptRoleRequest

type ListDeptRoleRequest struct {
	page.Search
	InRoleIds []uint32 `json:"inRoleIds"`
	DeptId    uint32   `json:"deptId"`
	Name      *string  `json:"name"`
	App       string   `json:"app"`
}

type ListDeptUserRequest

type ListDeptUserRequest struct {
	page.Search
	DeptId uint32  `json:"deptId"`
	Name   *string `json:"name"`
	App    string  `json:"app"`
}

type ListDictionaryRequest

type ListDictionaryRequest struct {
	Page     uint32  `json:"page"`
	PageSize uint32  `json:"pageSize"`
	Keyword  *string `json:"keyword"`
	Name     *string `json:"name"`
}

type ListDictionaryValueRequest

type ListDictionaryValueRequest struct {
	Page         uint32  `json:"page"`
	PageSize     uint32  `json:"pageSize"`
	DictionaryId uint32  `json:"dictionaryId"`
	Label        *string `json:"label"`
	Value        *string `json:"value"`
	Status       *bool   `json:"status"`
}

type ListEntityFieldRequest

type ListEntityFieldRequest struct {
	EntityId uint32  `json:"entityId"`
	Name     *string `json:"name"`
}

type ListEntityRequest

type ListEntityRequest struct {
	page.Search
	App      string  `json:"app"`
	Name     *string `json:"name"`
	Database *string `json:"database"`
}

type ListEntityRuleRequest

type ListEntityRuleRequest struct {
	*page.Search
	EntityId *uint32 `json:"entityId"`
	Name     *string `json:"name"`
	Status   *bool   `json:"status"`
}

type ListFeedbackClassifyRequest added in v1.2.10

type ListFeedbackClassifyRequest struct {
	*page.Search
	Name *string `json:"name"`
}

type ListFeedbackRequest

type ListFeedbackRequest struct {
	*page.Search
	App        *string  `json:"app"`
	ClassifyId *uint32  `json:"classifyId"`
	Status     *string  `json:"status"`
	Platform   *string  `json:"platform"`
	Apps       []string `json:"apps"`
}

type ListFieldRequest

type ListFieldRequest struct {
	*page.Search
	Keywords []string `json:"keywords"`
	Keyword  *string  `json:"keyword"`
	Name     *string  `json:"name"`
	Type     *string  `json:"type"`
	Status   *bool    `json:"status"`
}

type ListFormSceneRequest added in v1.2.10

type ListFormSceneRequest struct {
	*page.Search
	Keyword *string `json:"keyword"`
	Name    *string `json:"name"`
}

ListFormSceneRequest 查询场景列表请求

type ListJobRequest

type ListJobRequest struct {
	page.Search
	App     string  `json:"app"`
	Keyword *string `json:"keyword"`
	Name    *string `json:"name"`
	Status  *bool   `json:"status"`
}

type ListJobRoleRequest

type ListJobRoleRequest struct {
	page.Search
	InRoleIds []uint32 `json:"inRoleIds"`

	JobId uint32  `json:"jobId"`
	Name  *string `json:"name"`
	App   string  `json:"app"`
}

type ListLoginLogRequest

type ListLoginLogRequest struct {
	page.Search
	Username   *string `json:"username"`
	CreatedAts []int64 `json:"createdAts"`
	App        *string `json:"app"`
}

type ListMenuRequest

type ListMenuRequest struct {
	App        *string  `json:"app"`
	InIds      []uint32 `json:"inIds"`
	InTypes    []string `json:"inTypes"`
	NotInTypes []string `json:"notInTypes"`

	// 中间转换参数
	OnlyMenu bool `json:"onlyMenu"`
}

type ListNoticeRequest added in v1.2.10

type ListNoticeRequest struct {
	*page.Search
	ClassifyId *uint32 `json:"classifyId"`
	App        *string `json:"app"`
	Title      *string `json:"title"`
	IsTop      *bool   `json:"isTop"`
	Status     *bool   `json:"status"`
	NotRead    *bool   `json:"notRead"`
	UserId     *uint32 `json:"userId"`
}

type ListOAutherRequest added in v1.2.8

type ListOAutherRequest struct {
	*page.Search
	Keyword *string `json:"keyword"`
	Name    *string `json:"name"`
	Status  *bool   `json:"status"`
}

type ListRoleEntityRequest

type ListRoleEntityRequest struct {
	page.Search
	RoleId   uint32  `json:"roleId"`
	EntityId *uint32 `json:"entityId"`
}

type ListRoleRequest

type ListRoleRequest struct {
	InIds   []uint32 `json:"inIds"`
	Name    *string  `json:"name"`
	Status  *bool    `json:"status"`
	Keyword *string  `json:"keyword"`
}

type ListUserDeptRequest

type ListUserDeptRequest struct {
	*page.Search
	InDeptIds []uint32 `json:"inDeptIds"`
	UserId    uint32   `json:"userId"`
	Dept      *string  `json:"dept"`
	Job       *string  `json:"job"`
	App       string   `json:"app"`
}

type ListUserFormRequest added in v1.2.10

type ListUserFormRequest struct {
	*page.Search
	Scene  *string `json:"scene"`
	Name   *string `json:"name"`
	Status *bool   `json:"status"`
}

ListUserFormRequest 分页查询表单列表请求

type ListUserRequest

type ListUserRequest struct {
	page.Search
	InIds      []uint32 `json:"idIds"`
	NotInIds   []uint32 `json:"notInIds"`
	InDeptIds  []uint32 `json:"inDeptIds"`
	InJobIds   []uint32 `json:"inJobIds"`
	Username   *string  `json:"username"`
	Status     *bool    `json:"status"`
	LoggedAts  []uint32 `json:"loggedAts"`
	CreatedAts []uint32 `json:"createdAts"`

	// 中转参数
	DeptId *uint32 `json:"deptId"`
	JobId  *uint32 `json:"jobId"`
	App    *string `json:"app"`
}

type ListUserinfoRequest

type ListUserinfoRequest struct {
	Fields []string `json:"fields"`
	UserId uint32   `json:"userId"`
}

type ListVisibleOAutherRequest added in v1.2.10

type ListVisibleOAutherRequest struct {
	App      string `json:"app"`
	Platform string `json:"platform"`
}

type LoginReply added in v1.2.8

type LoginReply struct {
	NeedInfo bool   `json:"needInfo"`
	Token    string `json:"token"`
}

type LoginRequest added in v1.2.8

type LoginRequest struct {
	App       string `json:"app"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	CaptchaId string `json:"captchaId"`
	Captcha   string `json:"captcha"`
}

type OAutherBindReply added in v1.2.8

type OAutherBindReply struct {
	NeedRegister bool   `json:"needRegister"`
	NeedInfo     bool   `json:"needInfo"`
	Token        string `json:"token"`
}

type OAutherBindRequest added in v1.2.8

type OAutherBindRequest struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	CaptchaId string `json:"captchaId"`
	Captcha   string `json:"captcha"`
	UUID      string `json:"uuid"`
	Register  bool   `json:"register"`
}

type OAutherCompleteRequest added in v1.2.10

type OAutherCompleteRequest struct {
	IP      string `json:"ip"`
	UUID    string `json:"uuid"`
	Account string `json:"account"`
	Code    string `json:"code"`
}

type OAutherHandleReply added in v1.2.8

type OAutherHandleReply struct {
	UUID   string `json:"uuid"`
	Action string `json:"action"`
	Value  string `json:"value"`
	Tip    string `json:"tip"`
}

type OAutherHandleRequest added in v1.2.8

type OAutherHandleRequest struct {
	App       string `json:"app"`
	Keyword   string `json:"keyword"`
	UserAgent string `json:"userAgent"`
	Account   string `json:"account"`
	IP        string `json:"ip"`
	Platform  string `json:"platform"`
}

type OAutherIdentity added in v1.2.10

type OAutherIdentity struct {
	OID      string `json:"oid,omitempty"`      // 授权唯一ID
	Birthday string `json:"birthday,omitempty"` // 生日
	RealName string `json:"realName,omitempty"` // 姓名
	NickName string `json:"nickName,omitempty"` // 昵称
	Gender   string `json:"gender,omitempty"`   // 性别
	Province string `json:"province,omitempty"` // 省
	City     string `json:"city,omitempty"`     // 市
	Country  string `json:"country,omitempty"`  // 区
	Avatar   string `json:"avatar,omitempty"`   // 头像
	UnionId  string `json:"unionId,omitempty"`  // 联合ID
	Token    string `json:"token,omitempty"`    // 授权token
	Expire   int64  `json:"expire,omitempty"`   // 过期时间
}

func (OAutherIdentity) ToString added in v1.2.10

func (reply OAutherIdentity) ToString() string

type OAutherLoginReply added in v1.2.8

type OAutherLoginReply struct {
	NeedBind bool    `json:"needBind"`
	NeedInfo bool    `json:"needInfo"`
	Token    *string `json:"token"`
	Expire   *uint32 `json:"expire"`
}

type OAutherLoginRequest added in v1.2.8

type OAutherLoginRequest struct {
	Account string `json:"account"`
	Code    string `json:"code"`
	UUID    string `json:"uuid"`
}

type OAutherReportRequest added in v1.2.10

type OAutherReportRequest struct {
	Code string `json:"code"`
	UUID string `json:"uuid"`
}

type OAutherStartReply added in v1.2.10

type OAutherStartReply struct {
	UUID   string `json:"uuid"`
	Action string `json:"action"`
	Value  string `json:"value"`
	Tip    string `json:"tip"`
}

type OAutherStartRequest added in v1.2.10

type OAutherStartRequest struct {
	IP        string `json:"ip"`
	UUID      string `json:"uuid"`
	Account   string `json:"account"`
	App       string `json:"app"`
	Keyword   string `json:"keyword"`
	Platform  string `json:"platform"`
	UserAgent string `json:"userAgent"`
}

type OAutherType added in v1.2.8

type OAutherType struct {
	Keyword string
	Name    string
}

type OAutherVisibleReply added in v1.2.10

type OAutherVisibleReply struct {
	Visible       bool   `json:"visible"`
	Recommend     bool   `json:"recommend"`
	RecommendText string `json:"recommendText"`
}

type OAutherVisibleRequest added in v1.2.10

type OAutherVisibleRequest struct {
	UserAgent string `json:"userAgent"`
	Platform  string `json:"platform"`
}

type OfflineUserRequest added in v1.2.8

type OfflineUserRequest struct {
	UserId uint32   `json:"userId"`
	Apps   []string `json:"apps"`
}

type RegisterEntityFieldNode added in v1.2.10

type RegisterEntityFieldNode struct {
	Name    string `json:"name"`
	Comment string `json:"comment"`
	Index   int    `json:"index"`
}

type RegisterEntityNode added in v1.2.10

type RegisterEntityNode struct {
	Database string                     `json:"database"`
	Name     string                     `json:"name"`
	Comment  string                     `json:"comment"`
	Fields   []*RegisterEntityFieldNode `json:"fields"`
	Rules    []*RegisterEntityRuleNode  `json:"rules"`
}

type RegisterEntityReply added in v1.2.10

type RegisterEntityReply struct {
	Created uint32 `json:"created"`
	Updated uint32 `json:"updated"`
	Deleted uint32 `json:"deleted"`
}

type RegisterEntityRequest added in v1.2.10

type RegisterEntityRequest struct {
	AppKeyword string                `json:"appKeyword"`
	Mode       string                `json:"mode"`
	Entities   []*RegisterEntityNode `json:"entities"`
}

type RegisterEntityRuleNode added in v1.2.10

type RegisterEntityRuleNode struct {
	Name        string `json:"name"`
	Status      *bool  `json:"status"`
	Expression  string `json:"expression"`
	Description string `json:"description"`
}

type RegisterMenuNode added in v1.2.10

type RegisterMenuNode struct {
	Key        *string             `json:"key"`
	Title      string              `json:"title"`
	Type       string              `json:"type"`
	Icon       *string             `json:"icon"`
	Api        *string             `json:"api"`
	Method     *string             `json:"method"`
	Path       *string             `json:"path"`
	Permission *string             `json:"permission"`
	Component  *string             `json:"component"`
	Url        *string             `json:"url"`
	Redirect   *string             `json:"redirect"`
	Weight     *int32              `json:"weight"`
	IsIframe   *bool               `json:"isIframe"`
	IsHidden   *bool               `json:"isHidden"`
	IsCache    *bool               `json:"isCache"`
	IsHome     *bool               `json:"isHome"`
	IsAffix    *bool               `json:"isAffix"`
	Children   []*RegisterMenuNode `json:"children"`
}

type RegisterMenuReply added in v1.2.10

type RegisterMenuReply struct {
	Created uint32 `json:"created"`
	Updated uint32 `json:"updated"`
	Deleted uint32 `json:"deleted"`
}

type RegisterMenuRequest added in v1.2.10

type RegisterMenuRequest struct {
	AppKeyword string              `json:"appKeyword"`
	Mode       string              `json:"mode"`
	Menus      []*RegisterMenuNode `json:"menus"`
}

type RegisterReply added in v1.2.8

type RegisterReply struct {
	NeedInfo bool   `json:"needInfo"`
	Token    string `json:"token"`
}

type RegisterRequest added in v1.2.8

type RegisterRequest struct {
	App       string `json:"app"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	CaptchaId string `json:"captchaId"`
	Captcha   string `json:"captcha"`
}

type UpdateCurrentUserPasswordRequest added in v1.2.8

type UpdateCurrentUserPasswordRequest struct {
	OldPassword string `json:"oldPassword"`
	Password    string `json:"password"`
}

type UpdateCurrentUserRequest

type UpdateCurrentUserRequest struct {
	Avatar    *string           `json:"avatar"`
	Nickname  *string           `json:"nickname"`
	Signature *string           `json:"signature"`
	Infos     map[string]string `json:"infos"`
}

type UpdateCurrentUserSettingRequest

type UpdateCurrentUserSettingRequest struct {
	App     string `json:"app"`
	Setting string `json:"setting"`
}

Jump to

Keyboard shortcuts

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