types

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetOAuthWayBrowserWX = "wx"

	GetOAuthWayActionScan    = "scan"
	GetOAuthWayActionJump    = "jump"
	GetOAuthWayActionCaptcha = "captcha"
)

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 ApiAuthRequest

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

type CreateDeptRolesRequest

type CreateDeptRolesRequest struct {
	RoleIds []uint32 `json:"roleIds"`
	DeptId  uint32   `json:"deptId"`
}

type CreateJobRolesRequest

type CreateJobRolesRequest struct {
	RoleIds []uint32 `json:"roleIds"`
	JobId   uint32   `json:"jobId"`
}

type CreateMenuRolesRequest

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

type CreateRoleDeptsRequest

type CreateRoleDeptsRequest struct {
	DeptIds []uint32 `json:"deptIds"`
	RoleId  uint32   `json:"roleId"`
}

type CreateRoleJobsRequest

type CreateRoleJobsRequest struct {
	JobIds []uint32 `json:"jobIds"`
	RoleId uint32   `json:"roleId"`
}

type CreateRoleMenusRequest

type CreateRoleMenusRequest struct {
	MenuIds []uint32 `json:"menuIds"`
	RoleId  uint32   `json:"roleId"`
	AppId   uint32   `json:"appId"`
}

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
}

type DeleteDeptRolesRequest

type DeleteDeptRolesRequest struct {
	DeptId  uint32   `json:"deptId"`
	RoleIds []uint32 `json:"roleIds"`
}

type DeleteDeptUsersRequest

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

type DeleteJobRolesRequest

type DeleteJobRolesRequest struct {
	JobId   uint32   `json:"jobId"`
	RoleIds []uint32 `json:"roleIds"`
}

type DeleteMenuRolesRequest

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

type DeleteRoleDeptsRequest

type DeleteRoleDeptsRequest struct {
	DeptIds []uint32 `json:"deptIds"`
	RoleId  uint32   `json:"roleId"`
}

type DeleteRoleJobsRequest

type DeleteRoleJobsRequest struct {
	JobIds []uint32 `json:"jobIds"`
	RoleId uint32   `json:"roleId"`
}

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 FieldType

type FieldType struct {
	Type string
	Name string
}

type GetAppRequest

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

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 GetOAuthInfoReply

type GetOAuthInfoReply 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 (GetOAuthInfoReply) ToString

func (reply GetOAuthInfoReply) ToString() string

type GetOAuthInfoRequest

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

type GetOAuthTokenReply

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

type GetOAuthTokenRequest

type GetOAuthTokenRequest struct {
	IP   string `json:"ip"`
	UUID string `json:"uuid"`
	User string `json:"user"`
	Code string `json:"code"`
}

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"`
	Desc               string `json:"desc"`
	Copyright          string `json:"copyright"`
	ChangePasswordType string `json:"changePasswordType"`
	Watermark          string `json:"watermark"`
}

type GetSystemSettingRequest

type GetSystemSettingRequest struct{}

type GetTenantRequest

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

type GetUserLoginCaptchaReply

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

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 ListAppFieldRequest

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

type ListAppOAuthChannelRequest

type ListAppOAuthChannelRequest struct {
	page.Search
	AppId   uint32  `json:"appId"`
	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 ListAuthLogRequest

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

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 {
	EntityId uint32  `json:"entityId"`
	Name     *string `json:"name"`
}

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

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"`
	FilterRoot   bool     `json:"filterRoot"`
	FilterTenant bool     `json:"filterTenant"`
}

type ListOAuthChannelRequest

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

type ListOAuthRequest

type ListOAuthRequest struct {
	page.Search
	UserId uint32 `json:"userId"`
}

type ListRoleDeptRequest

type ListRoleDeptRequest struct {
	page.Search
	InDeptIds []uint32 `json:"inDeptIds"`
	RoleId    uint32   `json:"roleId"`
	Name      *string  `json:"name"`
}

type ListRoleEntityRequest

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

type ListRoleJobRequest

type ListRoleJobRequest struct {
	page.Search
	InJobIds []uint32 `json:"inJobIds"`
	RoleId   uint32   `json:"roleId"`
	Name     *string  `json:"name"`
}

type ListRoleRequest

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

type ListTenantAppOAuthChannelRequest

type ListTenantAppOAuthChannelRequest struct {
	TenantId uint32 `json:"tenantId"`
	AppId    uint32 `json:"appId"`
}

type ListTenantAppRequest

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

type ListTenantRequest

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

type ListUserDeptRequest

type ListUserDeptRequest struct {
	page.Search
	InDeptIds []uint32 `json:"inDeptIds"`
	UserId    uint32   `json:"userId"`
	Name      *string  `json:"name"`
}

type ListUserRequest

type ListUserRequest struct {
	page.Search
	InIds     []uint32 `json:"idIds"`
	NotInIds  []uint32 `json:"notInIds"`
	InDeptIds []uint32 `json:"inDeptIds"`
	Username  *string  `json:"name"`
	Status    *bool    `json:"status"`
}

type ListUserinfoRequest

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

type OAuthBindRequest

type OAuthBindRequest struct {
	*UserLoginRequest
	UUID    string
	Keyword string
}

type OAuthHandlerReply

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

type OAuthHandlerRequest

type OAuthHandlerRequest struct {
	Keyword   string `json:"keyword"`
	UserAgent string `json:"user_agent"`
	User      string `json:"user"`
	IP        string `json:"ip"`
}

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 OAuthor

type OAuthor interface {
	Platform() string
	Name() string
}

type ReportOAuthCodeRequest

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

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
}

type UserLoginRequest

type UserLoginRequest struct {
	Tenant    string `json:"tenant"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	CaptchaId string `json:"captchaId"`
	Captcha   string `json:"captcha"`
}

Jump to

Keyboard shortcuts

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