sysapi

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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 model.CollectRes[model.AliyunSdkConf]

type AliyunSdkConfRes added in v0.1.2

type AliyunSdkConfRes model.AliyunSdkConf

type AuditListRes

type AuditListRes model.SysAuditListRes

type AuditRes

type AuditRes entity.SysAudit

type BaiduSdkConfListRes

type BaiduSdkConfListRes model.CollectRes[model.BaiduSdkConf]

type BaiduSdkConfRes

type BaiduSdkConfRes model.BaiduSdkConf

type BankCardWithOCRRes

type BankCardWithOCRRes model.BankCardWithOCR

type CaptchaIndexReq

type CaptchaIndexReq struct {
	g.Meta `` /* 128-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 */
	model.AliyunSdkConf
}

type CreateBaiduSdkConfReq

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

type CreateOrganizationInfoReq

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

type CreatePermissionReq

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

type CreateRoleInfoReq

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

type CreateUserReq

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

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 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 ForgotPasswordReq

type ForgotPasswordReq struct {
	g.Meta `path:"/forgotPassword" method:"post" summary:"忘记密码" tags:"鉴权"`
	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:"/area/getAreaListByParentId" method:"get" summary:"获取属于父级ID的地区列表" tags:"工具"`
	ParentId int64 `json:"parentId"    description:"父级ID" v:"min:-1" default:"-1"`
}

type GetAuditByIdReq

type GetAuditByIdReq struct {
	g.Meta `path:"/getAuditById" method:"post" summary:"根据资质ID获取资质审核|信息" tags:"审核管理"`
	Id     int64 `json:"id" dc:"资质审核ID"`
}

type GetAuditListReq

type GetAuditListReq struct {
	g.Meta `path:"/getAuditList" method:"post" summary:"獲取审核信息|列表" tags:"审核管理"`
	model.Pagination
	State    int `json:"state" v:"in:-1,0,1#状态参数错误" dc:"过滤审核状态支持:-1不通过,0待审核,1通过" default:"0"`
	Category int `` /* 194-byte string literal not displayed */
}

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 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 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 IDCardWithOCRRes

type IDCardWithOCRRes model.IDCardWithOCR

type LoginReq

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

type LoginRes

type LoginRes model.TokenInfo

type OrganizationInfoListRes

type OrganizationInfoListRes model.CollectRes[entity.SysOrganization]

type OrganizationInfoRes

type OrganizationInfoRes entity.SysOrganization

type OrganizationInfoTreeListRes

type OrganizationInfoTreeListRes []model.SysOrganizationTree

type OrganizationInfoTreeRes

type OrganizationInfoTreeRes model.SysOrganizationTree

type QueryOrganizationListReq

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

type QueryPermissionListReq

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

type QueryRoleListReq

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

type QueryUserListReq

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

type RegisterReq

type RegisterReq struct {
	g.Meta `path:"/register" method:"post" summary:"注册" tags:"鉴权"`
	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:"鉴权"`
	Username string `json:"username" v:"required#请输入用户名" dc:"登录账号"`
	Password string `json:"password" v:"required#请输入密码" dc:"登录密码"`
	IdKey    string `json:"key" v:"required#请输入KEY" dc:"KEY,通过ForgotPassword结构获取"`
}

type RoleInfoRes

type RoleInfoRes entity.SysRole

type RoleListRes

type RoleListRes model.CollectRes[entity.SysRole]

type SendCaptchaBySmsReq

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

type SetAuditApproveReq

type SetAuditApproveReq struct {
	g.Meta `path:"/setAuditApprove" method:"post" summary:"审批通过" tags:"审核管理"`
	Id     int64 `json:"id" v:"required|min:1#ID参数错误|ID必须大于0" dc:"审核ID"`
}

type SetAuditRejectReq

type SetAuditRejectReq struct {
	g.Meta `path:"/setAuditReject" method:"post" summary:"审批不通过" tags:"审核管理"`
	Id     int64  `json:"id" v:"required|min:1#ID参数错误|ID必须大于0" dc:"审核ID"`
	Replay string `json:"replay" v:"required#请输入不通过原因" dc:"不通过原因"`
}

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 SysPermissionInfoListRes

type SysPermissionInfoListRes model.CollectRes[entity.SysPermission]

type SysPermissionInfoRes

type SysPermissionInfoRes entity.SysPermission

type SysPermissionInfoTreeRes

type SysPermissionInfoTreeRes []model.SysPermissionTree

type UpdateAliyunSdkConfReq added in v0.1.2

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

type UpdateBaiduSdkConfReq

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

type UpdateOrganizationInfoReq

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

type UpdatePermissionReq

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

type UpdateRoleInfoReq

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

type UploadBankCardWithOCRReq

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

type UploadBusinessLicenseWithOCRReq

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

type UploadBusinessLicenseWithOCRRes

type UploadBusinessLicenseWithOCRRes model.BusinessLicenseWithOCR

type UploadIDCardWithOCRReq

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

type UploadReq

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

type UploadRes

type UploadRes model.FileUploadOutput

type UserInfoListRes

type UserInfoListRes model.CollectRes[entity.SysUser]

type UserInfoRes

type UserInfoRes entity.SysUser

type UserListRes

type UserListRes model.CollectRes[model.SysUser]

Jump to

Keyboard shortcuts

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