sysapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunSdkConfListRes added in v0.1.2

type AliyunSdkConfListRes sys_model.CollectRes[sys_model.AliyunSdkConf]

type AliyunSdkConfRes added in v0.1.2

type AliyunSdkConfRes sys_model.AliyunSdkConf

type BaiduSdkConfRes

type BaiduSdkConfRes sys_model.BaiduSdkConf

type BankCardWithOCRRes

type BankCardWithOCRRes sys_model.BankCardWithOCR

type CaptchaIndexReq

type CaptchaIndexReq struct {
	g.Meta `` /* 132-byte string literal not displayed */
}

type CaptchaIndexRes

type CaptchaIndexRes struct {
	g.Meta `mime:"png" dc:"验证码二进制内容" `
}

type CreateAliyunSdkConfReq added in v0.1.2

type CreateAliyunSdkConfReq struct {
	g.Meta `` /* 179-byte string literal not displayed */
	sys_model.AliyunSdkConf
}

type CreateBaiduSdkConfReq

type CreateBaiduSdkConfReq struct {
	g.Meta `` /* 174-byte string literal not displayed */
	sys_model.BaiduSdkConf
}

type CreateCtyunSdkConfReq added in v0.1.4

type CreateCtyunSdkConfReq struct {
	g.Meta `` /* 176-byte string literal not displayed */
	sys_model.CtyunSdkConf
}

type CreateHuaweiSdkConfReq added in v0.1.4

type CreateHuaweiSdkConfReq struct {
	g.Meta `` /* 179-byte string literal not displayed */
	sys_model.HuaweiSdkConf
}

type CreateOrganizationInfoReq

type CreateOrganizationInfoReq struct {
	g.Meta `path:"/createOrganization" method:"post" summary:"创建组织架构|信息" tags:"组织架构"`
	sys_model.SysOrganizationInfo
}

type CreatePermissionReq

type CreatePermissionReq struct {
	g.Meta `path:"/createPermission" method:"post" summary:"新增权限|信息" tags:"权限"`
	sys_model.SysPermission
}

type CreateRoleInfoReq

type CreateRoleInfoReq struct {
	g.Meta `path:"/createRole" method:"post" summary:"新增角色|信息" tags:"角色"`
	sys_model.SysRole
}

type CreateTencentSdkConfReq added in v0.1.4

type CreateTencentSdkConfReq struct {
	g.Meta `` /* 180-byte string literal not displayed */
	sys_model.TencentSdkConf
}

type CreateUserReq

type CreateUserReq struct {
	g.Meta `path:"/createUser" method:"post" summary:"新增用户|信息" tags:"用户"`
	sys_model.UserInnerRegister
}

type CtyunSdkConfListRes added in v0.1.4

type CtyunSdkConfListRes sys_model.CollectRes[sys_model.CtyunSdkConf]

type CtyunSdkConfRes added in v0.1.4

type CtyunSdkConfRes sys_model.CtyunSdkConf

type DeleteAliyunSdkConfReq added in v0.1.2

type DeleteAliyunSdkConfReq struct {
	g.Meta     ``     /* 172-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type DeleteBaiduSdkConfReq

type DeleteBaiduSdkConfReq struct {
	g.Meta     ``     /* 167-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type DeleteCtyunSdkConfReq added in v0.1.4

type DeleteCtyunSdkConfReq struct {
	g.Meta     ``     /* 170-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type DeleteHuaweiSdkConfReq added in v0.1.4

type DeleteHuaweiSdkConfReq struct {
	g.Meta     ``     /* 172-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type DeleteOrganizationInfoReq

type DeleteOrganizationInfoReq struct {
	g.Meta `path:"/deleteOrganizationInfo" method:"post" summary:"根据ID删除组织架构|信息" tags:"组织架构"`
	Id     int64 `json:"id" v:"required#缺少ID参数" dc:"组织架构ID"`
}

type DeletePermissionReq

type DeletePermissionReq struct {
	g.Meta `path:"/deletePermission" method:"post" summary:"删除权限" tags:"权限"`
	Id     int64 `json:"id" v:"required#权限ID校验失败" dc:"权限ID"`
}

type DeleteRoleInfoReq

type DeleteRoleInfoReq struct {
	g.Meta `path:"/deleteRole" method:"post" summary:"删除角色" tags:"角色"`
	Id     int64 `json:"id" v:"required#角色ID校验失败" dc:"角色ID"`
}

type DeleteTencentSdkConfReq added in v0.1.4

type DeleteTencentSdkConfReq struct {
	g.Meta     ``     /* 174-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type ForgotPasswordReq

type ForgotPasswordReq struct {
	g.Meta `path:"/forgotPassword" method:"post" summary:"忘记密码" tags:"鉴权"`
	sys_model.ForgotPassword
}

type ForgotPasswordRes

type ForgotPasswordRes struct {
	IdKey int64 `json:"id" dc:"ResetPassword 接口需要的key"`
}

type GetAliyunSdkConfListReq added in v0.1.2

type GetAliyunSdkConfListReq struct {
	g.Meta `` /* 180-byte string literal not displayed */
}

type GetAliyunSdkConfReq added in v0.1.2

type GetAliyunSdkConfReq struct {
	g.Meta     ``     /* 176-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type GetAreaListByParentIdReq

type GetAreaListByParentIdReq struct {
	g.Meta   `path:"/sys_area/getAreaListByParentId" method:"get" summary:"获取属于父级ID的地区列表" tags:"工具"`
	ParentId int64 `json:"parentId"    description:"父级ID" v:"min:-1" default:"-1"`
}

type GetBaiduSdkConfListReq

type GetBaiduSdkConfListReq struct {
	g.Meta `` /* 175-byte string literal not displayed */
}

type GetBaiduSdkConfReq

type GetBaiduSdkConfReq struct {
	g.Meta     ``     /* 171-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type GetCtyunSdkConfListReq added in v0.1.4

type GetCtyunSdkConfListReq struct {
	g.Meta `` /* 178-byte string literal not displayed */
}

type GetCtyunSdkConfReq added in v0.1.4

type GetCtyunSdkConfReq struct {
	g.Meta     ``     /* 174-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type GetHuaweiSdkConfListReq added in v0.1.4

type GetHuaweiSdkConfListReq struct {
	g.Meta `` /* 180-byte string literal not displayed */
}

type GetHuaweiSdkConfReq added in v0.1.4

type GetHuaweiSdkConfReq struct {
	g.Meta     ``     /* 176-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type GetOrganizationInfoReq

type GetOrganizationInfoReq struct {
	g.Meta `path:"/getOrganizationInfo" method:"post" summary:"获取组织架构|信息" tags:"组织架构"`
	Id     int64 `json:"id" v:"required#缺少ID参数" dc:"组织架构ID"`
}

type GetOrganizationListReq

type GetOrganizationListReq struct {
	g.Meta      `path:"/getOrganizationList" method:"post" summary:"根据ID获取下级组织架构|列表" tags:"组织架构"`
	Id          int64 `json:"id" v:"required#缺少ID参数" dc:"组织架构ID"`
	IsRecursive bool  `json:"isRecursive" dc:"是否递归"`
}

type GetOrganizationTreeReq

type GetOrganizationTreeReq struct {
	g.Meta `path:"/getOrganizationTree" method:"post" summary:"根据ID获取下级组织架构|树" tags:"组织架构"`
	Id     int64 `json:"id" v:"required#缺少ID参数" dc:"组织架构ID"`
}

type GetPermissionByIdReq

type GetPermissionByIdReq struct {
	g.Meta `path:"/getPermissionById" method:"post" summary:"根据权限ID获取权限|信息" tags:"权限"`
	Id     int64 `json:"id" v:"required#权限ID校验失败" dc:"权限ID"`
}

type GetPermissionByNameReq

type GetPermissionByNameReq struct {
	g.Meta `path:"/getPermissionByName" method:"post" summary:"根据权限Name获取权限|信息" tags:"权限"`
	Name   string `json:"name" v:"required|max-length:64#权限Name校验失败|仅支持最大字符长度64" dc:"权限Name"`
}

type GetPermissionListReq

type GetPermissionListReq struct {
	g.Meta      `path:"/getPermissionList" method:"post" summary:"根据ID获取下级权限|列表,返回列表" tags:"权限"`
	Id          int64 `json:"id" v:"min:0#权限ID校验失败" dc:"权限ID" default:"0"`
	IsRecursive bool  `json:"isRecursive" dc:"是否递归,true则显示所有子级"`
}

type GetPermissionTreeReq

type GetPermissionTreeReq struct {
	g.Meta `path:"/getPermissionTree" method:"post" summary:"根据ID获取下级权限|树" tags:"权限"`
	Id     int64 `json:"id" v:"required#权限ID校验失败" dc:"权限ID"`
}

type GetRolePermissionsReq

type GetRolePermissionsReq struct {
	g.Meta `path:"/getRolePermissionIds" method:"post" summary:"获取角色权限Ids" tags:"角色"`
	Id     int64 `json:"id" v:"required#角色ID校验失败" dc:"角色ID"`
}

type GetRoleUsersReq

type GetRoleUsersReq struct {
	g.Meta `path:"/getRoleUserList" method:"post" summary:"获取角色下的所有用户|列表" tags:"角色"`
	RoleId int64 `json:"roleId" v:"required#角色ID校验失败" dc:"角色ID"`
}

type GetTencentSdkConfListReq added in v0.1.4

type GetTencentSdkConfListReq struct {
	g.Meta `` /* 182-byte string literal not displayed */
}

type GetTencentSdkConfReq added in v0.1.4

type GetTencentSdkConfReq struct {
	g.Meta     ``     /* 178-byte string literal not displayed */
	Identifier string `json:"identifier" v:"required#标识符参数错误" dc:"业务标识符"`
}

type GetUserPermissionIdsReq

type GetUserPermissionIdsReq struct {
	g.Meta `path:"/getUserPermissionIds" method:"post" summary:"获取用户权限|ID数组" tags:"用户"`
	Id     int64 `json:"id" v:"required#用户ID校验失败" dc:"用户ID"`
}

type GetUserRolesReq

type GetUserRolesReq struct {
	g.Meta `path:"/getUserRoleList" method:"post" summary:"获取用户拥有的所有角色|列表" tags:"角色"`
	UserId int64 `json:"userId" v:"required#用户ID校验失败" dc:"用户ID"`
}

type HuaweiSdkConfListRes added in v0.1.4

type HuaweiSdkConfListRes sys_model.CollectRes[sys_model.HuaweiSdkConf]

type HuaweiSdkConfRes added in v0.1.4

type HuaweiSdkConfRes sys_model.HuaweiSdkConf

type IDCardWithOCRRes

type IDCardWithOCRRes sys_model.IDCardWithOCR

type LoginByMobileReq added in v0.2.0

type LoginByMobileReq struct {
	g.Meta `path:"/loginByMobile" method:"post" summary:"手机号登录" tags:"鉴权"`
	sys_model.LoginByMobileInfo
}

type LoginByMobileRes added in v0.2.0

type LoginByMobileRes sys_model.TokenInfo

type LoginReq

type LoginReq struct {
	g.Meta `path:"/login" method:"post" summary:"登录" tags:"鉴权"`
	sys_model.LoginInfo
}

type LoginRes

type LoginRes sys_model.TokenInfo

type OrganizationInfoRes

type OrganizationInfoRes sys_entity.SysOrganization

type OrganizationInfoTreeListRes

type OrganizationInfoTreeListRes []sys_model.SysOrganizationTree

type OrganizationInfoTreeRes

type OrganizationInfoTreeRes sys_model.SysOrganizationTree

type QueryOrganizationListReq

type QueryOrganizationListReq struct {
	g.Meta `path:"/queryOrganizationList" method:"post" summary:"获取组织架构|列表" tags:"组织架构"`
	sys_model.SearchParams
}

type QueryPermissionListReq

type QueryPermissionListReq struct {
	g.Meta `path:"/queryPermissionList" method:"post" summary:"根据ID获取下级权限|列表,返回列表" tags:"权限"`
	sys_model.SearchParams
}

type QueryRoleListReq

type QueryRoleListReq struct {
	g.Meta `path:"/queryRoleList" method:"post" summary:"获取所有角色|列表" tags:"角色"`
	sys_model.SearchParams
}

type QueryUserListReq

type QueryUserListReq struct {
	g.Meta `path:"/queryUserList" method:"post" summary:"获取用户|列表" tags:"用户"`
	sys_model.SearchParams
}

type RegisterReq

type RegisterReq struct {
	g.Meta `path:"/register" method:"post" summary:"注册" tags:"鉴权"`
	sys_model.SysUserRegister
}

type RemoveRoleForUserReq

type RemoveRoleForUserReq struct {
	g.Meta `path:"/removeRoleForUser" method:"post" summary:"移除用户所拥有的角色" tags:"角色"`
	RoleId int64 `json:"roleId" v:"required#角色ID校验失败" dc:"角色ID"`
	UserId int64 `json:"userId" v:"required#用户ID校验失败" dc:"用户ID"`
}

type ResetPasswordReq

type ResetPasswordReq struct {
	g.Meta          `path:"/resetPasswordReq" method:"post" summary:"重置密码" tags:"鉴权"`
	Password        string `json:"password" v:"required#请输入密码" dc:"登录密码"`
	ConfirmPassword string `` /* 129-byte string literal not displayed */
	IdKey           string `json:"id_key" v:"required#请输入KEY" dc:"KEY,通过ForgotPassword结构获取"`
}

type RoleInfoRes

type RoleInfoRes sys_entity.SysRole

type SendCaptchaBySmsReq

type SendCaptchaBySmsReq struct {
	g.Meta      `path:"/sendCaptchaBySms" method:"post" summary:"发送短信验证码" tags:"短信"`
	CaptchaType int `` /* 188-byte string literal not displayed */
}

type SetRoleForUserReq

type SetRoleForUserReq struct {
	g.Meta `path:"/setRoleForUser" method:"post" summary:"设置角色用户" tags:"角色"`
	RoleId int64 `json:"roleId" v:"required#角色ID校验失败" dc:"角色ID"`
	UserId int64 `json:"userId" v:"required#用户ID校验失败" dc:"用户ID"`
}

type SetRolePermissionsReq

type SetRolePermissionsReq struct {
	g.Meta        `path:"/setRolePermissions" method:"post" summary:"设置角色权限" tags:"角色"`
	Id            int64   `json:"id" v:"required#角色ID校验失败" dc:"角色ID"`
	PermissionIds []int64 `json:"permissionIds" v:"array#权限ID集合参数无效" dc:"权限ID集合"`
}

type SetUserPermissionIdsReq

type SetUserPermissionIdsReq struct {
	g.Meta        `path:"/setUserPermissionIds" method:"post" summary:"设置用户权限" tags:"用户"`
	Id            int64   `json:"id" v:"required#用户ID校验失败" dc:"用户ID"`
	PermissionIds []int64 `json:"permissionIds" v:"array#权限ID集合参数无效" dc:"权限ID集合"`
}

type SetUserRoleIdsReq

type SetUserRoleIdsReq struct {
	g.Meta  `path:"/setUserRoleIds" method:"post" summary:"设置用户角色" tags:"用户"`
	RoleIds []int64 `json:"roleIds" v:"required#角色ID校验失败" dc:"角色ID数组"`
	UserId  int64   `json:"userId" v:"required#用户ID校验失败" dc:"用户ID"`
}

type SetUsernameByIdReq

type SetUsernameByIdReq struct {
	g.Meta      `path:"/setUsername" method:"post" summary:"设置用户登陆名称" tags:"用户"`
	NewUsername string `json:"newUsername" v:"required#新用户名称" dc:"新的用户名称"`
}

type SysPermissionInfoRes

type SysPermissionInfoRes sys_entity.SysPermission

type SysPermissionInfoTreeRes

type SysPermissionInfoTreeRes []sys_model.SysPermissionTree

type TencentSdkConfListRes added in v0.1.4

type TencentSdkConfListRes sys_model.CollectRes[sys_model.TencentSdkConf]

type TencentSdkConfRes added in v0.1.4

type TencentSdkConfRes sys_model.TencentSdkConf

type UpdateAliyunSdkConfReq added in v0.1.2

type UpdateAliyunSdkConfReq struct {
	g.Meta `` /* 179-byte string literal not displayed */
	sys_model.AliyunSdkConf
}

type UpdateBaiduSdkConfReq

type UpdateBaiduSdkConfReq struct {
	g.Meta `` /* 174-byte string literal not displayed */
	sys_model.BaiduSdkConf
}

type UpdateCtyunSdkConfReq added in v0.1.4

type UpdateCtyunSdkConfReq struct {
	g.Meta `` /* 177-byte string literal not displayed */
	sys_model.CtyunSdkConf
}

type UpdateHuaweiSdkConfReq added in v0.1.4

type UpdateHuaweiSdkConfReq struct {
	g.Meta `` /* 179-byte string literal not displayed */
	sys_model.HuaweiSdkConf
}

type UpdateOrganizationInfoReq

type UpdateOrganizationInfoReq struct {
	g.Meta `path:"/updateOrganization" method:"post" summary:"更新组织架构|信息" tags:"组织架构"`
	sys_model.SysOrganizationInfo
}

type UpdatePermissionReq

type UpdatePermissionReq struct {
	g.Meta `path:"/updatePermission" method:"post" summary:"保存权限|信息" tags:"权限"`
	sys_model.SysPermission
}

type UpdateRoleInfoReq

type UpdateRoleInfoReq struct {
	g.Meta `path:"/updateRole" method:"post" summary:"更新角色|信息" tags:"角色"`
	sys_model.SysRole
}

type UpdateTencentSdkConfReq added in v0.1.4

type UpdateTencentSdkConfReq struct {
	g.Meta `` /* 181-byte string literal not displayed */
	sys_model.TencentSdkConf
}

type UpdateUserPasswordReq added in v0.2.0

type UpdateUserPasswordReq struct {
	g.Meta `path:"/updateUserPassword" method:"post" summary:"修改用户密码" tags:"用户"`
	sys_model.UpdateUserPassword
}

type UploadBankCardWithOCRReq

type UploadBankCardWithOCRReq struct {
	g.Meta `path:"/uploadBankCardWithOCR" method:"post" summary:"上传银行卡" tags:"工具"`
	sys_model.BankCardWithOCRInput
}

type UploadBusinessLicenseWithOCRReq

type UploadBusinessLicenseWithOCRReq struct {
	g.Meta `path:"/uploadBusinessLicenseWithOCR" method:"post" summary:"上传营业执照" tags:"工具"`
	sys_model.OCRBusinessLicense
}

type UploadBusinessLicenseWithOCRRes

type UploadBusinessLicenseWithOCRRes sys_model.BusinessLicenseWithOCR

type UploadIDCardWithOCRReq

type UploadIDCardWithOCRReq struct {
	g.Meta `path:"/uploadIDCardWithOCR" method:"post" summary:"上传身份证" tags:"工具"`
	sys_model.OCRIDCardFileUploadInput
}

type UploadReq

type UploadReq struct {
	g.Meta `path:"/upload" method:"post" summary:"文件上传" tags:"工具"`
	sys_model.FileUploadInput
}

type UploadRes

type UploadRes sys_model.FileUploadOutput

type UserInfoRes

type UserInfoRes sys_entity.SysUser

Jump to

Keyboard shortcuts

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