types

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 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"

	OAutherWayActionScan    = "scan"
	OAutherWayActionJump    = "jump"
	OAutherWayActionCaptcha = "captcha"
)
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
	AppId    uint32 `json:"appId"`
	TenantId uint32 `json:"tenantId"`
	UserId   uint32 `json:"userId"`
	DeptId   uint32 `json:"deptId"`
	JobId    uint32 `json:"jobId"`
}

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"`
	AppId uint32 `json:"appId"`
	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"`
}

type CreateJobRoleRequest added in v1.2.8

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

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"`
	AppId   uint32   `json:"appId"`
}

type CreateTenantAdminRequest added in v1.2.8

type CreateTenantAdminRequest struct {
	TenantId uint32 `json:"tenantId"` // 租户ID
	UserId   uint32 `json:"userId"`   // 用户ID
}

type CreateTenantAppRequest

type CreateTenantAppRequest struct {
	model.BaseModel
	TenantId  uint32   `json:"tenantId"`  // 租户ID
	AppId     uint32   `json:"appId"`     // 应用ID
	ExpiredAt uint32   `json:"expiredAt"` // 过期时间
	MenuIds   []uint32 `json:"menuIds"`   // 菜单id
	Setting   string   `json:"setting"`   // 配置
}

type DeleteDeptRoleRequest added in v1.2.8

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

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"`
}

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 DeleteTenantAdminRequest added in v1.2.8

type DeleteTenantAdminRequest struct {
	TenantId uint32 `json:"tenantId"` // 租户ID
	UserId   uint32 `json:"userId"`   // 用户ID
}

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 FieldType

type FieldType struct {
	Type string
	Name string
}

type GetAuthorizeRequest added in v1.2.8

type GetAuthorizeRequest struct {
	TenantId uint32 `json:"tenantId"`
	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"`
	AppId  *uint32 `json:"appId"`
}

type GetRoleRequest

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

type GetScopeResponse

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

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 GetTenantAppRequest added in v1.2.8

type GetTenantAppRequest struct {
	AppId    uint32 `json:"appId"`
	TenantId uint32 `json:"tenantId"` // 租户ID
}

type GetTenantRequest

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

type GetUserRequest

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

type GetUserSettingRequest

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

type GetUserinfoByFieldValueRequest added in v1.2.8

type GetUserinfoByFieldValueRequest struct {
	TenantId uint32 `json:"tenantId"`

	Field string `json:"field"`
	Value string `json:"value"`
}

type ListAppFieldRequest

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

type ListAppOAutherRequest added in v1.2.8

type ListAppOAutherRequest struct {
	*page.Search
	AppId    uint32  `json:"appId"`
	Keyword  *string `json:"keyword"`
	Name     *string `json:"name"`
	TenantId *uint32 `json:"tenantId"`
}

type ListAppRequest

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

type ListAuthLogRequest

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

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
	Name   *string `json:"name"`
	Status *bool   `json:"status"`
}

type ListDeptRequest

type ListDeptRequest struct {
	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"`
}

type ListDeptUserRequest

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

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
	AppId    uint32  `json:"appId"`
	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 ListFeedbackCategoryRequest

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

type ListFeedbackRequest

type ListFeedbackRequest struct {
	page.Search
	AppId      *uint32  `json:"appId"`
	CategoryId *uint32  `json:"categoryId"`
	Status     *string  `json:"status"`
	Platform   *string  `json:"platform"`
	AppIds     []uint32 `json:"appIds"`
}

type ListFieldRequest

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

type ListJobRequest

type ListJobRequest struct {
	page.Search
	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"`
}

type ListLoginLogRequest

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

type ListMenuRequest

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

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

type ListOAuthRequest

type ListOAuthRequest struct {
	page.Search
	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 ListTenantAdminRequest added in v1.2.8

type ListTenantAdminRequest struct {
	*page.Search
	TenantId uint32
}

type ListTenantAppRequest

type ListTenantAppRequest struct {
	*page.Search
	AppName    *string `json:"appName"`
	AppKeyword *string `json:"appKeyword"`
	TenantId   uint32  `json:"tenantId"` // 租户ID
}

type ListTenantRequest

type ListTenantRequest struct {
	*page.Search
	Keyword *string `json:"keyword"`
	Name    *string `json:"name"`
	Status  *bool   `json:"status"`
	AppId   *uint32 `json:"appId"`

	// 中间转换字段
	App *string `json:"app"`
}

type ListUserDeptRequest

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

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"`
	AppId      *uint32  `json:"appId"`

	// 中转参数
	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"`
	TenantId uint32   `json:"tenantId"`
}

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 {
	Tenant    string `json:"tenant"`
	App       string `json:"app"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	CaptchaId string `json:"captchaId"`
	Captcha   string `json:"captcha"`
}

type OAuthLoginReply

type OAuthLoginReply struct {
	IsBind bool    `json:"isBind"`
	Token  *string `json:"token"`
	Expire *uint32 `json:"expire"`
}

type OAuthLoginRequest

type OAuthLoginRequest struct {
	User    string `json:"user"`
	Code    string `json:"code"`
	Keyword string `json:"keyword"`
	UUID    string `json:"uuid"`
}

type OAutherBindReply added in v1.2.8

type OAutherBindReply struct {
	NeedRegister bool
	NeedInfo     bool
	Token        string
}

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"`
}

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"`
	CodeField string `json:"codeField"`
}

type OAutherHandleRequest added in v1.2.8

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

type OAutherInfoReply added in v1.2.8

type OAutherInfoReply 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
}

func (OAutherInfoReply) ToString added in v1.2.8

func (reply OAutherInfoReply) ToString() string

type OAutherInfoRequest added in v1.2.8

type OAutherInfoRequest struct {
	OID   string `json:"oid"`
	Token string `json:"token"`
}

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"`
	Keyword string `json:"keyword"`
	UUID    string `json:"uuid"`
	Tenant  string `json:"tenant"`
	App     string `json:"app"`
}

type OAutherTokenReply added in v1.2.8

type OAutherTokenReply struct {
	Token  string `json:"token"`
	Expire int64  `json:"expire"`
	OID    string `json:"oid"`
}

type OAutherTokenRequest added in v1.2.8

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

type OAutherType added in v1.2.8

type OAutherType struct {
	Keyword string
	Name    string
}

type OfflineUserRequest added in v1.2.8

type OfflineUserRequest struct {
	UserId uint32   `json:"userId"`
	AppIds []uint32 `json:"appIds"`
}

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 {
	Tenant    string `json:"tenant"`
	App       string `json:"app"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	CaptchaId string `json:"captchaId"`
	Captcha   string `json:"captcha"`
}

type ReportOAuthCodeRequest

type ReportOAuthCodeRequest struct {
	Code    string `json:"code"`
	Keyword string `json:"keyword"`
	UUID    string `json:"uuid"`
}

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"`
}

type UpdateCurrentUserSettingRequest

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

type UpdateTenantAppRequest

type UpdateTenantAppRequest struct {
	model.BaseModel
	TenantId  uint32   `json:"tenantId"`  // 租户ID
	AppId     uint32   `json:"appId"`     // 应用ID
	ExpiredAt uint32   `json:"expiredAt"` // 过期时间
	MenuIds   []uint32 `json:"menuIds"`   // 菜单id
	Setting   string   `json:"setting"`   // 配置
}

Jump to

Keyboard shortcuts

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