Documentation ¶
Index ¶
- Variables
- func Init()
- func LoadAll()
- type ApiService
- func (apiService *ApiService) CreateApi(api system.SysApi) (err error)
- func (apiService *ApiService) DeleteApi(api system.SysApi) (err error)
- func (apiService *ApiService) DeleteApiByIds(ids []string) (err error)
- func (apiService *ApiService) DeleteApisByIds(ids request.IdsReq) (err error)
- func (apiService *ApiService) GetAPIInfoList(api system.SysApi, info request.PageInfo, order string, desc bool) (err error, list interface{}, total int64)
- func (apiService *ApiService) GetAllApis() (err error, apis []system.SysApi)
- func (apiService *ApiService) GetApiById(id float64) (err error, api system.SysApi)
- func (apiService *ApiService) UpdateApi(api system.SysApi) (err error)
- type AuthorityService
- func (authorityService *AuthorityService) CopyAuthority(copyInfo response.SysAuthorityCopyResponse) (err error, authority system.SysAuthority)
- func (authorityService *AuthorityService) CreateAuthority(auth system.SysAuthority) (err error, authority system.SysAuthority)
- func (authorityService *AuthorityService) DeleteAuthority(auth *system.SysAuthority) (err error)
- func (authorityService *AuthorityService) GetAuthorityInfo(auth system.SysAuthority) (err error, sa system.SysAuthority)
- func (authorityService *AuthorityService) GetAuthorityInfoList(info request.PageInfo) (err error, list interface{}, total int64)
- func (authorityService *AuthorityService) SetDataAuthority(auth system.SysAuthority) error
- func (authorityService *AuthorityService) SetMenuAuthority(auth *system.SysAuthority) error
- func (authorityService *AuthorityService) UpdateAuthority(auth system.SysAuthority) (err error, authority system.SysAuthority)
- type AutoCodeHistoryService
- func (autoCodeHistoryService *AutoCodeHistoryService) CreateAutoCodeHistory(meta, structName, structCNName, autoCodePath string, injectionMeta string, ...) error
- func (autoCodeHistoryService *AutoCodeHistoryService) DeletePage(id uint) error
- func (autoCodeHistoryService *AutoCodeHistoryService) GetMeta(id uint) (string, error)
- func (autoCodeHistoryService *AutoCodeHistoryService) GetSysHistoryPage(info request.PageInfo) (err error, list interface{}, total int64)
- func (autoCodeHistoryService *AutoCodeHistoryService) Repeat(structName string) bool
- func (autoCodeHistoryService *AutoCodeHistoryService) RollBack(id uint) error
- type AutoCodeService
- func (autoCodeService *AutoCodeService) AutoCreateApi(a *system.AutoCodeStruct) (ids []uint, err error)
- func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruct, ids ...uint) (err error)
- func (autoCodeService *AutoCodeService) DropTable(tableName string) error
- func (autoCodeService *AutoCodeService) GetAllTplFile(pathName string, fileList []string) ([]string, error)
- func (autoCodeService *AutoCodeService) GetColumn(tableName string, dbName string) (err error, Columns []request.ColumnReq)
- func (autoCodeService *AutoCodeService) GetDB() (err error, DBNames []request.DBReq)
- func (autoCodeService *AutoCodeService) GetTables(dbName string) (err error, TableNames []request.TableReq)
- func (autoCodeService *AutoCodeService) PreviewTemp(autoCode system.AutoCodeStruct) (map[string]string, error)
- type BaseMenuService
- type CasbinService
- func (casbinService *CasbinService) Casbin() *casbin.SyncedEnforcer
- func (casbinService *CasbinService) ClearCasbin(v int, p ...string) bool
- func (casbinService *CasbinService) GetPolicyPathByAuthorityId(authorityId string) (pathMaps []request.CasbinInfo)
- func (casbinService *CasbinService) ParamsMatch(fullNameKey1 string, key2 string) bool
- func (casbinService *CasbinService) ParamsMatchFunc(args ...interface{}) (interface{}, error)
- func (casbinService *CasbinService) UpdateCasbin(authorityId string, casbinInfos []request.CasbinInfo) error
- func (casbinService *CasbinService) UpdateCasbinApi(oldPath string, newPath string, oldMethod string, newMethod string) error
- type DictionaryDetailService
- func (dictionaryDetailService *DictionaryDetailService) CreateSysDictionaryDetail(sysDictionaryDetail system.SysDictionaryDetail) (err error)
- func (dictionaryDetailService *DictionaryDetailService) DeleteSysDictionaryDetail(sysDictionaryDetail system.SysDictionaryDetail) (err error)
- func (dictionaryDetailService *DictionaryDetailService) GetSysDictionaryDetail(id uint) (err error, sysDictionaryDetail system.SysDictionaryDetail)
- func (dictionaryDetailService *DictionaryDetailService) GetSysDictionaryDetailInfoList(info request.SysDictionaryDetailSearch) (err error, list interface{}, total int64)
- func (dictionaryDetailService *DictionaryDetailService) UpdateSysDictionaryDetail(sysDictionaryDetail *system.SysDictionaryDetail) (err error)
- type DictionaryService
- func (dictionaryService *DictionaryService) CreateSysDictionary(sysDictionary system.SysDictionary) (err error)
- func (dictionaryService *DictionaryService) DeleteSysDictionary(sysDictionary system.SysDictionary) (err error)
- func (dictionaryService *DictionaryService) GetSysDictionary(Type string, Id uint) (err error, sysDictionary system.SysDictionary)
- func (dictionaryService *DictionaryService) GetSysDictionaryInfoList(info request.SysDictionarySearch) (err error, list interface{}, total int64)
- func (dictionaryService *DictionaryService) UpdateSysDictionary(sysDictionary *system.SysDictionary) (err error)
- type InitDBService
- type JwtService
- func (jwtService *JwtService) GetRedisJWT(userName string) (err error, redisJWT string)
- func (jwtService *JwtService) IsBlacklist(jwt string) bool
- func (jwtService *JwtService) JsonInBlacklist(jwtList system.JwtBlacklist) (err error)
- func (jwtService *JwtService) SetRedisJWT(jwt string, userName string) (err error)
- type MenuService
- func (menuService *MenuService) AddBaseMenu(menu system.SysBaseMenu) error
- func (menuService *MenuService) AddMenuAuthority(menus []system.SysBaseMenu, authorityId string) (err error)
- func (menuService *MenuService) GetBaseMenuTree() (err error, menus []system.SysBaseMenu)
- func (menuService *MenuService) GetInfoList() (err error, list interface{}, total int64)
- func (menuService *MenuService) GetMenuAuthority(info *request.GetAuthorityId) (err error, menus []system.SysMenu)
- func (menuService *MenuService) GetMenuTree(authorityId string) (err error, menus []system.SysMenu)
- type OperationRecordService
- func (operationRecordService *OperationRecordService) CreateSysOperationRecord(sysOperationRecord system.SysOperationRecord) (err error)
- func (operationRecordService *OperationRecordService) DeleteSysOperationRecord(sysOperationRecord system.SysOperationRecord) (err error)
- func (operationRecordService *OperationRecordService) DeleteSysOperationRecordByIds(ids request.IdsReq) (err error)
- func (operationRecordService *OperationRecordService) GetSysOperationRecord(id uint) (err error, sysOperationRecord system.SysOperationRecord)
- func (operationRecordService *OperationRecordService) GetSysOperationRecordInfoList(info systemReq.SysOperationRecordSearch) (err error, list interface{}, total int64)
- type ServiceGroup
- type SystemConfigService
- type UserService
- func (userService *UserService) ChangePassword(u *system.SysUser, newPassword string) (err error, userInter *system.SysUser)
- func (userService *UserService) DeleteUser(id float64) (err error)
- func (userService *UserService) FindUserById(id int) (err error, user *system.SysUser)
- func (userService *UserService) FindUserByUuid(uuid string) (err error, user *system.SysUser)
- func (userService *UserService) GetUserInfo(uuid uuid.UUID) (err error, user system.SysUser)
- func (userService *UserService) GetUserInfoList(info request.PageInfo) (err error, list interface{}, total int64)
- func (userService *UserService) Login(u *system.SysUser) (err error, userInter *system.SysUser)
- func (userService *UserService) Register(u system.SysUser) (err error, userInter system.SysUser)
- func (userService *UserService) SetUserAuthorities(id uint, authorityIds []string) (err error)
- func (userService *UserService) SetUserAuthority(id uint, uuid uuid.UUID, authorityId string) (err error)
- func (userService *UserService) SetUserInfo(reqUser system.SysUser) (err error, user system.SysUser)
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiServiceApp = new(ApiService)
View Source
var AuthorityServiceApp = new(AuthorityService)
View Source
var AutoCodeHistoryServiceApp = new(AutoCodeHistoryService)
View Source
var AutoCodeServiceApp = new(AutoCodeService)
View Source
var CasbinServiceApp = new(CasbinService)
View Source
var MenuServiceApp = new(MenuService)
View Source
var RepeatErr = errors.New("重复创建")
Functions ¶
Types ¶
type ApiService ¶
type ApiService struct { }
func (*ApiService) CreateApi ¶
func (apiService *ApiService) CreateApi(api system.SysApi) (err error)
func (*ApiService) DeleteApi ¶
func (apiService *ApiService) DeleteApi(api system.SysApi) (err error)
func (*ApiService) DeleteApiByIds ¶
func (apiService *ApiService) DeleteApiByIds(ids []string) (err error)
func (*ApiService) DeleteApisByIds ¶
func (apiService *ApiService) DeleteApisByIds(ids request.IdsReq) (err error)
func (*ApiService) GetAPIInfoList ¶
func (*ApiService) GetAllApis ¶
func (apiService *ApiService) GetAllApis() (err error, apis []system.SysApi)
func (*ApiService) GetApiById ¶
func (apiService *ApiService) GetApiById(id float64) (err error, api system.SysApi)
type AuthorityService ¶
type AuthorityService struct { }
func (*AuthorityService) CopyAuthority ¶
func (authorityService *AuthorityService) CopyAuthority(copyInfo response.SysAuthorityCopyResponse) (err error, authority system.SysAuthority)
func (*AuthorityService) CreateAuthority ¶
func (authorityService *AuthorityService) CreateAuthority(auth system.SysAuthority) (err error, authority system.SysAuthority)
func (*AuthorityService) DeleteAuthority ¶
func (authorityService *AuthorityService) DeleteAuthority(auth *system.SysAuthority) (err error)
func (*AuthorityService) GetAuthorityInfo ¶
func (authorityService *AuthorityService) GetAuthorityInfo(auth system.SysAuthority) (err error, sa system.SysAuthority)
func (*AuthorityService) GetAuthorityInfoList ¶
func (authorityService *AuthorityService) GetAuthorityInfoList(info request.PageInfo) (err error, list interface{}, total int64)
func (*AuthorityService) SetDataAuthority ¶
func (authorityService *AuthorityService) SetDataAuthority(auth system.SysAuthority) error
func (*AuthorityService) SetMenuAuthority ¶
func (authorityService *AuthorityService) SetMenuAuthority(auth *system.SysAuthority) error
func (*AuthorityService) UpdateAuthority ¶
func (authorityService *AuthorityService) UpdateAuthority(auth system.SysAuthority) (err error, authority system.SysAuthority)
type AutoCodeHistoryService ¶
type AutoCodeHistoryService struct { }
func (*AutoCodeHistoryService) CreateAutoCodeHistory ¶
func (autoCodeHistoryService *AutoCodeHistoryService) CreateAutoCodeHistory(meta, structName, structCNName, autoCodePath string, injectionMeta string, tableName string, apiIds string) error
CreateAutoCodeHistory RouterPath : RouterPath@RouterString;RouterPath2@RouterString2
func (*AutoCodeHistoryService) DeletePage ¶
func (autoCodeHistoryService *AutoCodeHistoryService) DeletePage(id uint) error
DeletePage 删除历史数据
func (*AutoCodeHistoryService) GetMeta ¶
func (autoCodeHistoryService *AutoCodeHistoryService) GetMeta(id uint) (string, error)
func (*AutoCodeHistoryService) GetSysHistoryPage ¶
func (autoCodeHistoryService *AutoCodeHistoryService) GetSysHistoryPage(info request.PageInfo) (err error, list interface{}, total int64)
GetSysHistoryPage 获取系统历史数据
func (*AutoCodeHistoryService) Repeat ¶
func (autoCodeHistoryService *AutoCodeHistoryService) Repeat(structName string) bool
func (*AutoCodeHistoryService) RollBack ¶
func (autoCodeHistoryService *AutoCodeHistoryService) RollBack(id uint) error
RollBack 回滚
type AutoCodeService ¶
type AutoCodeService struct { }
func (*AutoCodeService) AutoCreateApi ¶
func (autoCodeService *AutoCodeService) AutoCreateApi(a *system.AutoCodeStruct) (ids []uint, err error)
func (*AutoCodeService) CreateTemp ¶
func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruct, ids ...uint) (err error)
func (*AutoCodeService) DropTable ¶
func (autoCodeService *AutoCodeService) DropTable(tableName string) error
func (*AutoCodeService) GetAllTplFile ¶
func (autoCodeService *AutoCodeService) GetAllTplFile(pathName string, fileList []string) ([]string, error)
func (*AutoCodeService) GetDB ¶
func (autoCodeService *AutoCodeService) GetDB() (err error, DBNames []request.DBReq)
func (*AutoCodeService) GetTables ¶
func (autoCodeService *AutoCodeService) GetTables(dbName string) (err error, TableNames []request.TableReq)
func (*AutoCodeService) PreviewTemp ¶
func (autoCodeService *AutoCodeService) PreviewTemp(autoCode system.AutoCodeStruct) (map[string]string, error)
type BaseMenuService ¶
type BaseMenuService struct { }
func (*BaseMenuService) DeleteBaseMenu ¶
func (baseMenuService *BaseMenuService) DeleteBaseMenu(id float64) (err error)
func (*BaseMenuService) GetBaseMenuById ¶
func (baseMenuService *BaseMenuService) GetBaseMenuById(id float64) (err error, menu system.SysBaseMenu)
func (*BaseMenuService) UpdateBaseMenu ¶
func (baseMenuService *BaseMenuService) UpdateBaseMenu(menu system.SysBaseMenu) (err error)
type CasbinService ¶
type CasbinService struct { }
func (*CasbinService) Casbin ¶
func (casbinService *CasbinService) Casbin() *casbin.SyncedEnforcer
func (*CasbinService) ClearCasbin ¶
func (casbinService *CasbinService) ClearCasbin(v int, p ...string) bool
func (*CasbinService) GetPolicyPathByAuthorityId ¶
func (casbinService *CasbinService) GetPolicyPathByAuthorityId(authorityId string) (pathMaps []request.CasbinInfo)
func (*CasbinService) ParamsMatch ¶
func (casbinService *CasbinService) ParamsMatch(fullNameKey1 string, key2 string) bool
func (*CasbinService) ParamsMatchFunc ¶
func (casbinService *CasbinService) ParamsMatchFunc(args ...interface{}) (interface{}, error)
func (*CasbinService) UpdateCasbin ¶
func (casbinService *CasbinService) UpdateCasbin(authorityId string, casbinInfos []request.CasbinInfo) error
func (*CasbinService) UpdateCasbinApi ¶
type DictionaryDetailService ¶
type DictionaryDetailService struct { }
func (*DictionaryDetailService) CreateSysDictionaryDetail ¶
func (dictionaryDetailService *DictionaryDetailService) CreateSysDictionaryDetail(sysDictionaryDetail system.SysDictionaryDetail) (err error)
func (*DictionaryDetailService) DeleteSysDictionaryDetail ¶
func (dictionaryDetailService *DictionaryDetailService) DeleteSysDictionaryDetail(sysDictionaryDetail system.SysDictionaryDetail) (err error)
func (*DictionaryDetailService) GetSysDictionaryDetail ¶
func (dictionaryDetailService *DictionaryDetailService) GetSysDictionaryDetail(id uint) (err error, sysDictionaryDetail system.SysDictionaryDetail)
func (*DictionaryDetailService) GetSysDictionaryDetailInfoList ¶
func (dictionaryDetailService *DictionaryDetailService) GetSysDictionaryDetailInfoList(info request.SysDictionaryDetailSearch) (err error, list interface{}, total int64)
func (*DictionaryDetailService) UpdateSysDictionaryDetail ¶
func (dictionaryDetailService *DictionaryDetailService) UpdateSysDictionaryDetail(sysDictionaryDetail *system.SysDictionaryDetail) (err error)
type DictionaryService ¶
type DictionaryService struct { }
func (*DictionaryService) CreateSysDictionary ¶
func (dictionaryService *DictionaryService) CreateSysDictionary(sysDictionary system.SysDictionary) (err error)
func (*DictionaryService) DeleteSysDictionary ¶
func (dictionaryService *DictionaryService) DeleteSysDictionary(sysDictionary system.SysDictionary) (err error)
func (*DictionaryService) GetSysDictionary ¶
func (dictionaryService *DictionaryService) GetSysDictionary(Type string, Id uint) (err error, sysDictionary system.SysDictionary)
func (*DictionaryService) GetSysDictionaryInfoList ¶
func (dictionaryService *DictionaryService) GetSysDictionaryInfoList(info request.SysDictionarySearch) (err error, list interface{}, total int64)
func (*DictionaryService) UpdateSysDictionary ¶
func (dictionaryService *DictionaryService) UpdateSysDictionary(sysDictionary *system.SysDictionary) (err error)
type InitDBService ¶
type InitDBService struct { }
type JwtService ¶
type JwtService struct { }
func (*JwtService) GetRedisJWT ¶
func (jwtService *JwtService) GetRedisJWT(userName string) (err error, redisJWT string)
func (*JwtService) IsBlacklist ¶
func (jwtService *JwtService) IsBlacklist(jwt string) bool
func (*JwtService) JsonInBlacklist ¶
func (jwtService *JwtService) JsonInBlacklist(jwtList system.JwtBlacklist) (err error)
func (*JwtService) SetRedisJWT ¶
func (jwtService *JwtService) SetRedisJWT(jwt string, userName string) (err error)
type MenuService ¶
type MenuService struct { }
func (*MenuService) AddBaseMenu ¶
func (menuService *MenuService) AddBaseMenu(menu system.SysBaseMenu) error
func (*MenuService) AddMenuAuthority ¶
func (menuService *MenuService) AddMenuAuthority(menus []system.SysBaseMenu, authorityId string) (err error)
func (*MenuService) GetBaseMenuTree ¶
func (menuService *MenuService) GetBaseMenuTree() (err error, menus []system.SysBaseMenu)
func (*MenuService) GetInfoList ¶
func (menuService *MenuService) GetInfoList() (err error, list interface{}, total int64)
func (*MenuService) GetMenuAuthority ¶
func (menuService *MenuService) GetMenuAuthority(info *request.GetAuthorityId) (err error, menus []system.SysMenu)
func (*MenuService) GetMenuTree ¶
func (menuService *MenuService) GetMenuTree(authorityId string) (err error, menus []system.SysMenu)
type OperationRecordService ¶
type OperationRecordService struct { }
func (*OperationRecordService) CreateSysOperationRecord ¶
func (operationRecordService *OperationRecordService) CreateSysOperationRecord(sysOperationRecord system.SysOperationRecord) (err error)
func (*OperationRecordService) DeleteSysOperationRecord ¶
func (operationRecordService *OperationRecordService) DeleteSysOperationRecord(sysOperationRecord system.SysOperationRecord) (err error)
func (*OperationRecordService) DeleteSysOperationRecordByIds ¶
func (operationRecordService *OperationRecordService) DeleteSysOperationRecordByIds(ids request.IdsReq) (err error)
func (*OperationRecordService) GetSysOperationRecord ¶
func (operationRecordService *OperationRecordService) GetSysOperationRecord(id uint) (err error, sysOperationRecord system.SysOperationRecord)
func (*OperationRecordService) GetSysOperationRecordInfoList ¶
func (operationRecordService *OperationRecordService) GetSysOperationRecordInfoList(info systemReq.SysOperationRecordSearch) (err error, list interface{}, total int64)
type ServiceGroup ¶
type SystemConfigService ¶
type SystemConfigService struct { }
func (*SystemConfigService) GetServerInfo ¶
func (systemConfigService *SystemConfigService) GetServerInfo() (server *utils.Server, err error)
func (*SystemConfigService) GetSystemConfig ¶
func (systemConfigService *SystemConfigService) GetSystemConfig() (err error, conf config.Server)
func (*SystemConfigService) SetSystemConfig ¶
func (systemConfigService *SystemConfigService) SetSystemConfig(system system.System) (err error)
type UserService ¶
type UserService struct { }
func (*UserService) ChangePassword ¶
func (*UserService) DeleteUser ¶
func (userService *UserService) DeleteUser(id float64) (err error)
func (*UserService) FindUserById ¶
func (userService *UserService) FindUserById(id int) (err error, user *system.SysUser)
func (*UserService) FindUserByUuid ¶
func (userService *UserService) FindUserByUuid(uuid string) (err error, user *system.SysUser)
func (*UserService) GetUserInfo ¶
func (*UserService) GetUserInfoList ¶
func (userService *UserService) GetUserInfoList(info request.PageInfo) (err error, list interface{}, total int64)
func (*UserService) SetUserAuthorities ¶
func (userService *UserService) SetUserAuthorities(id uint, authorityIds []string) (err error)
func (*UserService) SetUserAuthority ¶
func (*UserService) SetUserInfo ¶
Click to show internal directories.
Click to hide internal directories.