Documentation ¶
Index ¶
- func AddAPI(c *gin.Context)
- func AddAPP(c *gin.Context)
- func AddDictionaries(c *gin.Context)
- func AddFormComponent(c *gin.Context)
- func AddLanguage(c *gin.Context)
- func AddMenu(c *gin.Context)
- func AddProject(c *gin.Context)
- func AddRole(c *gin.Context)
- func AddSystemConfig(c *gin.Context)
- func AddTenant(c *gin.Context)
- func AddUser(c *gin.Context)
- func AddWebSite(c *gin.Context)
- func AddWechatConfig(c *gin.Context)
- func ChangePwd(c *gin.Context)
- func CopyTenant(c *gin.Context)
- func DeleteAPI(c *gin.Context)
- func DeleteAPP(c *gin.Context)
- func DeleteDictionaries(c *gin.Context)
- func DeleteFormComponent(c *gin.Context)
- func DeleteLanguage(c *gin.Context)
- func DeleteMenu(c *gin.Context)
- func DeleteProject(c *gin.Context)
- func DeleteRole(c *gin.Context)
- func DeleteSystemConfig(c *gin.Context)
- func DeleteTenant(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func DeleteWebSite(c *gin.Context)
- func DeleteWechatConfig(c *gin.Context)
- func EnableAPI(c *gin.Context)
- func EnableTenant(c *gin.Context)
- func EnableUser(c *gin.Context)
- func ExportAPI(c *gin.Context)
- func ExportMenu(c *gin.Context)
- func ExportProject(c *gin.Context)
- func ExportRole(c *gin.Context)
- func ExportTenant(c *gin.Context)
- func ExportUser(c *gin.Context)
- func GetAPIDetail(c *gin.Context)
- func GetAPPDetail(c *gin.Context)
- func GetAllAPI(c *gin.Context)
- func GetAllAPP(c *gin.Context)
- func GetAllDictionaries(c *gin.Context)
- func GetAllLanguage(c *gin.Context)
- func GetAllProject(c *gin.Context)
- func GetAllRole(c *gin.Context)
- func GetAllSystemConfig(c *gin.Context)
- func GetAllTenant(c *gin.Context)
- func GetAllUsers(c *gin.Context)
- func GetAllWebSite(c *gin.Context)
- func GetAllWechatConfig(c *gin.Context)
- func GetBasicsByToken(c *gin.Context)
- func GetDictionariesDetail(c *gin.Context)
- func GetFormComponentDetail(c *gin.Context)
- func GetLanguageDetail(c *gin.Context)
- func GetMenuDetail(c *gin.Context)
- func GetMenuTree(c *gin.Context)
- func GetProjectDetail(c *gin.Context)
- func GetRoleDetail(c *gin.Context)
- func GetSystemConfigDetail(c *gin.Context)
- func GetTenantDetail(c *gin.Context)
- func GetUserDetail(c *gin.Context)
- func GetWebSiteDetail(c *gin.Context)
- func GetWechatConfigDetail(c *gin.Context)
- func ImportAPI(c *gin.Context)
- func ImportMenu(c *gin.Context)
- func ImportProject(c *gin.Context)
- func ImportRole(c *gin.Context)
- func ImportTenant(c *gin.Context)
- func ImportUser(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func Profile(c *gin.Context)
- func QueryAPI(c *gin.Context)
- func QueryAPP(c *gin.Context)
- func QueryDictionaries(c *gin.Context)
- func QueryFormComponent(c *gin.Context)
- func QueryLanguage(c *gin.Context)
- func QueryMenu(c *gin.Context)
- func QueryProject(c *gin.Context)
- func QueryRole(c *gin.Context)
- func QuerySystemConfig(c *gin.Context)
- func QueryTenant(c *gin.Context)
- func QueryUser(c *gin.Context)
- func QueryWebSite(c *gin.Context)
- func QueryWechatConfig(c *gin.Context)
- func RegisterAPIRouter(r *gin.Engine)
- func RegisterAPPRouter(r *gin.Engine)
- func RegisterAuthRouter(r *gin.Engine)
- func RegisterDictionariesRouter(r *gin.Engine)
- func RegisterFormComponentRouter(r *gin.Engine)
- func RegisterLanguageRouter(r *gin.Engine)
- func RegisterMenuRouter(r *gin.Engine)
- func RegisterProjectRouter(r *gin.Engine)
- func RegisterRoleRouter(r *gin.Engine)
- func RegisterSystemConfigRouter(r *gin.Engine)
- func RegisterTenantRouter(r *gin.Engine)
- func RegisterUserRouter(r *gin.Engine)
- func RegisterWebSiteRouter(r *gin.Engine)
- func RegisterWechatConfigRouter(r *gin.Engine)
- func RegisterWechatRouter(r *gin.Engine)
- func ResetPwd(c *gin.Context)
- func UpdateAPI(c *gin.Context)
- func UpdateAPP(c *gin.Context)
- func UpdateBasicsByToken(c *gin.Context)
- func UpdateDictionaries(c *gin.Context)
- func UpdateFormComponent(c *gin.Context)
- func UpdateLanguage(c *gin.Context)
- func UpdateMenu(c *gin.Context)
- func UpdateProfile(c *gin.Context)
- func UpdateProject(c *gin.Context)
- func UpdateRole(c *gin.Context)
- func UpdateSystemConfig(c *gin.Context)
- func UpdateTenant(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func UpdateWebSite(c *gin.Context)
- func UpdateWechatConfig(c *gin.Context)
- func WechatNotify(c *gin.Context)
- type CheckQRScannResultResponse
- type GetQRCodeResponse
- type GetQRConnectResponse
- type MiniLoginRequest
- type WechatNotifyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAPI ¶
AddAPI godoc @Summary 新增API @Description 新增API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.APIInfo true "Add API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/add [post]
func AddDictionaries ¶
AddDictionaries godoc @Summary 新增 @Description 新增 @Tags 字典管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.DictionariesInfo true "Add Dictionaries" @Success 200 {object} apipb.CommonResponse @Router /api/core/dictionaries/add [post]
func AddFormComponent ¶
AddFormComponent godoc @Summary 新增 @Description 新增 @Tags 表单组件管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.FormComponentInfo true "Add FormComponent" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/form/component/add [post]
func AddLanguage ¶
AddLanguage godoc @Summary 新增 @Description 新增 @Tags 多语言管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.LanguageInfo true "Add Language" @Success 200 {object} apipb.CommonResponse @Router /api/core/language/add [post]
func AddMenu ¶
AddMenu @Summary 新增菜单 @Description 新增菜单 @Tags 菜单管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.MenuInfo true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/menu/add [post]
func AddProject ¶
AddProject godoc @Summary 新增 @Description 新增 @Tags 项目管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.ProjectInfo true "Add Project" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/project/add [post]
func AddRole ¶
AddRole @Summary 新增角色 @Description 新增角色 @Tags 角色管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.RoleInfo true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/role/add [post]
func AddSystemConfig ¶
AddSystemConfig godoc @Summary 新增 @Description 新增 @Tags 系统配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.SystemConfigInfo true "Add SystemConfig" @Success 200 {object} apipb.CommonResponse @Router /api/core/system/config/add [post]
func AddTenant ¶
AddTenant @Summary 新增租户 @Description 新增租户 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.TenantInfo true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/tenant/add [post]
func AddUser ¶
AddUser godoc @Summary 新增用户 @Description 新增用户 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.UserInfo true "用户信息" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/add [post]
func AddWebSite ¶
AddWebSite godoc @Summary 新增 @Description 新增 @Tags 网站配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.WebSiteInfo true "Add WebSite" @Success 200 {object} apipb.CommonResponse @Router /api/core/web_site/add [post]
func AddWechatConfig ¶
AddWechatConfig godoc @Summary 新增 @Description 新增 @Tags 微信应用配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.WechatConfigInfo true "Add WechatConfig" @Success 200 {object} apipb.CommonResponse @Router /api/core/wechat/config/add [post]
func ChangePwd ¶
ChangePwd @Summary 修改密码 @Description 修改密码 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.ChangePwdRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/changepwd [post]
func CopyTenant ¶
CopyTenant @Summary 禁用/启用租户 @Description 禁用/启用租户 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.EnableRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/tenant/enable [post]
func DeleteAPI ¶
DeleteAPI godoc @Summary 删除API @Description 软删除API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/delete [delete]
func DeleteDictionaries ¶
DeleteDictionaries godoc @Summary 删除 @Description 删除 @Tags 字典管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete Dictionaries" @Success 200 {object} apipb.CommonResponse @Router /api/core/dictionaries/delete [delete]
func DeleteFormComponent ¶
DeleteFormComponent godoc @Summary 删除 @Description 删除 @Tags 表单组件管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete FormComponent" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/form/component/delete [delete]
func DeleteLanguage ¶
DeleteLanguage godoc @Summary 删除 @Description 删除 @Tags 多语言管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete Language" @Success 200 {object} apipb.CommonResponse @Router /api/core/language/delete [delete]
func DeleteMenu ¶
DeleteMenu @Summary 删除菜单 @Description 软删除菜单 @Tags 菜单管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/menu/delete [delete]
func DeleteProject ¶
DeleteProject godoc @Summary 删除 @Description 删除 @Tags 项目管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete Project" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/project/delete [delete]
func DeleteRole ¶
DeleteRole @Summary 删除角色 @Description 软删除角色 @Tags 角色管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/role/delete [delete]
func DeleteSystemConfig ¶
DeleteSystemConfig godoc @Summary 删除 @Description 删除 @Tags 系统配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete SystemConfig" @Success 200 {object} apipb.CommonResponse @Router /api/core/system/config/delete [delete]
func DeleteTenant ¶
DeleteTenant @Summary 删除租户 @Description 软删除租户 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/tenant/delete [delete]
func DeleteUser ¶
DeleteUser @Summary 删除用户 @Description 删除用户 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/delete [delete]
func DeleteWebSite ¶
DeleteWebSite godoc @Summary 删除 @Description 删除 @Tags 网站配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete WebSite" @Success 200 {object} apipb.CommonResponse @Router /api/core/web_site/delete [delete]
func DeleteWechatConfig ¶
DeleteWechatConfig godoc @Summary 删除 @Description 删除 @Tags 微信应用配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.DelRequest true "Delete WechatConfig" @Success 200 {object} apipb.CommonResponse @Router /api/core/wechat/config/delete [delete]
func EnableAPI ¶
EnableAPI godoc @Summary 禁用/启用API @Description 禁用/启用API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.EnableRequest true "Enable/Disable API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/enable [post]
func EnableTenant ¶
EnableTenant @Summary 禁用/启用租户 @Description 禁用/启用租户 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.EnableRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/tenant/enable [post]
func EnableUser ¶
EnableUser @Summary 禁用/启用用户 @Description 禁用/启用用户 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.EnableRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/enable [post]
func ExportAPI ¶
ExportAPI godoc @Summary 导出 @Description 导出 @Tags API管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param group query string false "Group" @Param method query string false "Method" @Param path query string false "Path" @Param ids query []string false "IDs" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/export [get]
func ExportMenu ¶
ExportMenu godoc @Summary 导出 @Description 导出 @Tags 菜单管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param ids query []string false "IDs" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/menu/export [get]
func ExportProject ¶
ExportProject godoc @Summary 导出 @Description 导出 @Tags 项目管理管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param tenantID query string false "租户ID" @Param name query string false "名称" @Param ids query []string false "IDs" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/project/export [get]
func ExportRole ¶
ExportRole godoc @Summary 导出 @Description 导出 @Tags 角色管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param ids query []string false "IDs" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/role/export [get]
func ExportTenant ¶
ExportTenant godoc @Summary 导出 @Description 导出 @Tags 租户管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param name query string false "租户名称" @Param ids query []string false "IDs" @Success 200 {object} apipb.CommonResponse @Router /api/auth/tenant/export [get]
func ExportUser ¶
ExportUser godoc @Summary 导出 @Description 导出 @Tags 用户管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param nickname query string false "Nickname" @Param userName query string false "UserName" @Param ids query []string false "IDs" @Success 200 {object} apipb.CommonResponse @Router /api/auth/user/export [get]
func GetAPIDetail ¶
GetAPIDetail godoc @Summary 查询明细 @Description 查询明细 @Tags API管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAPIDetailResponse @Router /api/core/auth/api/detail [get]
func GetAPPDetail ¶
func GetAllAPI ¶
GetAllAPI godoc @Summary 查询所有API @Description 查询所有API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllAPIResponse @Router /api/core/auth/api/all [get]
func GetAllDictionaries ¶
GetAllDictionaries godoc @Summary 查询所有 @Description 查询所有 @Tags 字典管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllDictionariesResponse @Router /api/core/dictionaries/all [get]
func GetAllLanguage ¶
GetAllLanguage godoc @Summary 查询所有 @Description 查询所有 @Tags 多语言管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllLanguageResponse @Router /api/core/language/all [get]
func GetAllProject ¶
GetAllProject godoc @Summary 查询所有 @Description 查询所有 @Tags 项目管理管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.QueryProjectResponse @Router /api/core/auth/project/all [get]
func GetAllRole ¶
GetAllRole @Summary 查询所有角色 @Description 查询所有角色 @Tags 角色管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param tenantID query string false "租户ID" @Param containerComm query bool false "是否包含公共角色" @Success 200 {object} apipb.QueryRoleResponse @Router /api/core/auth/role/all [get]
func GetAllSystemConfig ¶
GetAllSystemConfig godoc @Summary 查询所有 @Description 查询所有 @Tags 系统配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllSystemConfigResponse @Router /api/core/system/config/all [get]
func GetAllTenant ¶
GetAllTenant @Summary 查询所有租户 @Description 查询所有租户 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.QueryTenantResponse @Router /api/core/auth/tenant/all [get]
func GetAllUsers ¶
GetAllUsers @Summary 查询所有用户 @Description 查询所有用户 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param type query int false "用户类型,从1开始,为0时查询全部" @Param tenantID query string false "租户ID" @Param group query string false "分组ID,例如属于某个组织的,或者某个个人" @Success 200 {object} apipb.GetAllUsersResponse @Router /api/core/auth/user/all [get]
func GetAllWebSite ¶
GetAllWebSite godoc @Summary 查询所有 @Description 查询所有 @Tags 网站配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllWebSiteResponse @Router /api/core/web_site/all [get]
func GetAllWechatConfig ¶
GetAllWechatConfig godoc @Summary 查询所有 @Description 查询所有 @Tags 微信应用配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetAllWechatConfigResponse @Router /api/core/wechat/config/all [get]
func GetBasicsByToken ¶
GetBasicsByToken godoc @Summary 根据token查询明细 @Description 根据token查询明细 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetBasicsResponse @Router /api/core/auth/user/token/detail [get]
func GetDictionariesDetail ¶
GetDictionariesDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 字典管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetDictionariesDetailResponse @Router /api/core/dictionaries/detail [get]
func GetFormComponentDetail ¶
GetFormComponentDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 表单组件管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetFormComponentDetailResponse @Router /api/core/auth/form/component/detail [get]
func GetLanguageDetail ¶
GetLanguageDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 多语言管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetLanguageDetailResponse @Router /api/core/language/detail [get]
func GetMenuDetail ¶
GetMenuDetail @Summary 查询明细 @Description 查询明细 @Tags 菜单管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetMenuDetailResponse @Router /api/core/auth/menu/detail [get]
func GetMenuTree ¶
GetMenuTree @Summary 查询所有菜单(Tree) @Description 查询所有菜单(Tree) @Tags 菜单管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.QueryMenuResponse @Router /api/core/auth/menu/tree [get]
func GetProjectDetail ¶
GetProjectDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 项目管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetProjectDetailResponse @Router /api/core/auth/project/detail [get]
func GetRoleDetail ¶
GetRoleDetail @Summary 查询明细 @Description 查询明细 @Tags 角色管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetRoleDetailResponse @Router /api/core/auth/role/detail [get]
func GetSystemConfigDetail ¶
GetSystemConfigDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 系统配置管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetSystemConfigDetailResponse @Router /api/core/system/config/detail [get]
func GetTenantDetail ¶
GetTenantDetail @Summary 查询明细 @Description 查询明细 @Tags 租户管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetTenantDetailResponse @Router /api/core/auth/tenant/detail [get]
func GetUserDetail ¶
GetUserDetail @Summary 查询明细 @Description 查询明细 @Tags 用户管理 @Accept json @Produce json @Param id query string true "用户ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetUserDetailResponse @Router /api/core/auth/user/detail [get]
func GetWebSiteDetail ¶
GetWebSiteDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 网站配置管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetWebSiteDetailResponse @Router /api/core/web_site/detail [get]
func GetWechatConfigDetail ¶
GetWechatConfigDetail godoc @Summary 查询明细 @Description 查询明细 @Tags 微信应用配置管理 @Accept json @Produce json @Param id query string true "ID" @Param authorization header string true "jwt token" @Success 200 {object} apipb.GetWechatConfigDetailResponse @Router /api/core/wechat/config/detail [get]
func ImportAPI ¶
ImportAPI @Summary 导入 @Description 导入 @Tags API管理 @Accept mpfd @Produce json @Param authorization header string true "Bearer+空格+Token" @Param files formData file true "要上传的文件" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/import [post]
func ImportMenu ¶
ImportMenu @Summary 导入 @Description 导入 @Tags 菜单管理 @Accept mpfd @Produce json @Param authorization header string true "Bearer+空格+Token" @Param files formData file true "要上传的文件" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/menu/import [post]
func ImportProject ¶
ImportProject @Summary 导入 @Description 导入 @Tags 项目管理管理 @Accept mpfd @Produce json @Param authorization header string true "Bearer+空格+Token" @Param files formData file true "要上传的文件" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/project/import [post]
func ImportRole ¶
ImportRole @Summary 导入 @Description 导入 @Tags 角色管理 @Accept mpfd @Produce json @Param authorization header string true "Bearer+空格+Token" @Param files formData file true "要上传的文件" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/role/import [post]
func ImportTenant ¶
ImportTenant @Summary 导入 @Description 导入 @Tags 租户管理 @Accept mpfd @Produce json @Param authorization header string true "Bearer+空格+Token" @Param files formData file true "要上传的文件" @Success 200 {object} apipb.CommonResponse @Router /api/auth/tenant/import [post]
func ImportUser ¶
ImportUser @Summary 导入 @Description 导入 @Tags 用户管理 @Accept mpfd @Produce json @Param authorization header string true "Bearer+空格+Token" @Param files formData file true "要上传的文件" @Success 200 {object} apipb.CommonResponse @Router /api/auth/user/import [post]
func Login ¶
Login @Summary 登录 @Description 登录 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "Bearer+空格+Token" @Param product body apipb.LoginRequest true "个人信息" @Success 200 {object} apipb.LoginResponse @Router /api/core/auth/user/login [post]
func Logout ¶
Logout @Summary 退出登录 @Description 退出登录 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/logout [post]
func Profile ¶
Profile @Summary 获取个人信息 @Description 获取个人信息 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "Bearer+空格+Token" @Param returnMenu query bool false "返回Menu" @Success 200 {object} apipb.UserProfile @Router /api/core/auth/user/profile [get]
func QueryAPI ¶
QueryAPI godoc @Summary 分页查询 @Description 分页查询 @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param path query string false "路径" @Param method query string false "方法" @Param group query string false "分组" @Param checkAuth query string false "是否检查权限" @Param checkLogin query string false "是否需要登录" @Success 200 {object} apipb.QueryAPIResponse @Router /api/core/auth/api/query [get]
func QueryDictionaries ¶
QueryDictionaries godoc @Summary 分页查询 @Description 分页查询 @Tags 字典管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param tenantID query string false "租户ID" @Success 200 {object} apipb.QueryDictionariesResponse @Router /api/core/dictionaries/query [get]
func QueryFormComponent ¶
QueryFormComponent godoc @Summary 分页查询 @Description 分页查询 @Tags 表单组件管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param name query string false "组件名称" @Success 200 {object} apipb.QueryFormComponentResponse @Router /api/core/auth/form/component/query [get]
func QueryLanguage ¶
QueryLanguage godoc @Summary 分页查询 @Description 分页查询 @Tags 多语言管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param webSiteID query string false "所属站点" @Success 200 {object} apipb.QueryLanguageResponse @Router /api/core/language/query [get]
func QueryMenu ¶
QueryMenu @Summary 分页查询 @Description 分页查询 @Tags 菜单管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param path query string false "路径" @Param name query string false "名称" @Param title query string false "显示名称" @Param parentID query string false "父ID" @Param level query int false "层级" @Success 200 {object} apipb.QueryMenuResponse @Router /api/core/auth/menu/query [get]
func QueryProject ¶
QueryProject godoc @Summary 分页查询 @Description 分页查询 @Tags 项目管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param tenantID query string false "租户ID" @Param name query string false "名称" @Success 200 {object} apipb.QueryProjectResponse @Router /api/core/auth/project/query [get]
func QueryRole ¶
QueryRole @Summary 分页查询 @Description 分页查询 @Tags 角色管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param tenantID query string false "租户ID" @Param name query string false "名称" @Success 200 {object} apipb.QueryRoleResponse @Router /api/core/auth/role/query [get]
func QuerySystemConfig ¶
QuerySystemConfig godoc @Summary 分页查询 @Description 分页查询 @Tags 系统配置管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Success 200 {object} apipb.QuerySystemConfigResponse @Router /api/core/system/config/query [get]
func QueryTenant ¶
QueryTenant @Summary 分页查询 @Description 分页查询 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param tenantID query string false "租户ID" @Param name query string false "名称" @Success 200 {object} apipb.QueryTenantResponse @Router /api/core/auth/tenant/query [get]
func QueryUser ¶
QueryUser @Summary 分页查询 @Description 分页查询 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param userName query string false "用户名" @Param nickname query string false "昵称" @Param idCard query string false "身份证号" @Param mobile query string false "手机号" @Param title query string false "职位" @Param type query int false "用户类型,从1开始,为0时查询全部" @Param tenantID query string false "租户ID" @Param group query string false "分组ID,例如属于某个组织的,或者某个个人" @Success 200 {object} apipb.QueryUserResponse @Router /api/core/auth/user/query [get]
func QueryWebSite ¶
QueryWebSite godoc @Summary 分页查询 @Description 分页查询 @Tags 网站配置管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param name query string false "网站名称" @Param code query string false "网站编号" @Param projectID query string false "所属项目" @Param tenantID query string false "租户ID" @Success 200 {object} apipb.QueryWebSiteResponse @Router /api/core/web_site/query [get]
func QueryWechatConfig ¶
QueryWechatConfig godoc @Summary 分页查询 @Description 分页查询 @Tags 微信应用配置管理 @Accept json @Produce octet-stream @Param authorization header string true "jwt token" @Param pageIndex query int false "从1开始" @Param pageSize query int false "默认每页10条" @Param orderField query string false "排序字段" @Param desc query bool false "是否倒序排序" @Param appName query string false "APP名称" @Param tenantID query string false "租户ID" @Param appType query int false "类型" @Success 200 {object} apipb.QueryWechatConfigResponse @Router /api/core/wechat/config/query [get]
func RegisterAPIRouter ¶
func RegisterAPPRouter ¶
func RegisterAuthRouter ¶
func RegisterLanguageRouter ¶
func RegisterMenuRouter ¶
func RegisterProjectRouter ¶
func RegisterRoleRouter ¶
func RegisterTenantRouter ¶
func RegisterUserRouter ¶
func RegisterWebSiteRouter ¶
func RegisterWechatRouter ¶
func ResetPwd ¶
ResetPwd @Summary 重置密码 @Description 重置密码 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.GetDetailRequest true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/resetpwd [post]
func UpdateAPI ¶
UpdateAPI godoc @Summary 更新API @Description 更新API @Tags API管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.APIInfo true "Update API" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/api/update [put]
func UpdateBasicsByToken ¶
UpdateBasicsByToken godoc @Summary 根据token更新 @Description 根据token更新 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.BasicsInfo true "Update Customer" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/token/update [put]
func UpdateDictionaries ¶
UpdateDictionaries godoc @Summary 更新 @Description 更新 @Tags 字典管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.DictionariesInfo true "Update Dictionaries" @Success 200 {object} apipb.CommonResponse @Router /api/core/dictionaries/update [put]
func UpdateFormComponent ¶
UpdateFormComponent godoc @Summary 更新 @Description 更新 @Tags 表单组件管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.FormComponentInfo true "Update FormComponent" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/form/component/update [put]
func UpdateLanguage ¶
UpdateLanguage godoc @Summary 更新 @Description 更新 @Tags 多语言管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.LanguageInfo true "Update Language" @Success 200 {object} apipb.CommonResponse @Router /api/core/language/update [put]
func UpdateMenu ¶
UpdateMenu @Summary 更新菜单 @Description 更新菜单 @Tags 菜单管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.MenuInfo true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/menu/update [put]
func UpdateProfile ¶
UpdateProfile @Summary 更新个人信息 @Description 更新个人信息 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "Bearer+空格+Token" @Param product body apipb.UserProfile true "个人信息" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/profile [put]
func UpdateProject ¶
UpdateProject godoc @Summary 更新 @Description 更新 @Tags 项目管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.ProjectInfo true "Update Project" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/project/update [put]
func UpdateRole ¶
UpdateRole @Summary 更新角色 @Description 更新角色 @Tags 角色管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.RoleInfo true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/role/update [put]
func UpdateSystemConfig ¶
UpdateSystemConfig godoc @Summary 更新 @Description 更新 @Tags 系统配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.SystemConfigInfo true "Update SystemConfig" @Success 200 {object} apipb.CommonResponse @Router /api/core/system/config/update [put]
func UpdateTenant ¶
UpdateTenant @Summary 更新租户 @Description 更新租户 @Tags 租户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.TenantInfo true "请求参数" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/tenant/update [put]
func UpdateUser ¶
UpdateUser @Summary 更新用户 @Description 更新用户 @Tags 用户管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param data body apipb.UserInfo true "用户信息" @Success 200 {object} apipb.CommonResponse @Router /api/core/auth/user/update [put]
func UpdateWebSite ¶
UpdateWebSite godoc @Summary 更新 @Description 更新 @Tags 网站配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.WebSiteInfo true "Update WebSite" @Success 200 {object} apipb.CommonResponse @Router /api/core/web_site/update [put]
func UpdateWechatConfig ¶
UpdateWechatConfig godoc @Summary 更新 @Description 更新 @Tags 微信应用配置管理 @Accept json @Produce json @Param authorization header string true "jwt token" @Param account body apipb.WechatConfigInfo true "Update WechatConfig" @Success 200 {object} apipb.CommonResponse @Router /api/core/wechat/config/update [put]
func WechatNotify ¶
/api/wechat/notify?signature=779ee239e53c506537b56e530cd96bd5869c890a&echostr=7007211687744363958×tamp=1632722226&nonce=1266362590 WechatNotify 微信消息通知
Types ¶
type GetQRCodeResponse ¶
type GetQRConnectResponse ¶
type MiniLoginRequest ¶
type MiniLoginRequest struct { JsCode string `json:"jsCode"` PhoneNumberCode string `json:"phoneNumberCode"` EncryptedData string `json:"encryptedData"` IV string `json:"iv"` Register bool `json:"register"` App string `json:"app"` // 注册时需要传一个昵称(微信修改了获取用户信息接口,目前无法获取到昵称) Nickname string `json:"nickname"` }
type WechatNotifyRequest ¶
type WechatNotifyRequest struct { XMLName xml.Name `xml:"xml"` ToUserName string `xml:"ToUserName"` FromUserName string `xml:"FromUserName"` CreateTime int64 `xml:"CreateTime"` MsgType string `xml:"MsgType"` Event string `xml:"Event"` EventKey string `xml:"EventKey"` Ticket string `xml:"Ticket"` Content string `xml:"Content"` }