service

package
v0.0.0-...-88294d8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBaseMenu

func AddBaseMenu(menu model.SysBaseMenu) (err error)

func AddMenuAuthority

func AddMenuAuthority(menus []model.SysBaseMenu, authorityId string) (err error)

func AutoCreateApi

func AutoCreateApi(api model.SysApi) (err error)

func Casbin

func Casbin() *casbin.Enforcer

func ChangePassword

func ChangePassword(u *model.SysUser, newPassword string) (err error, userInter *model.SysUser)

func CheckFileMd5

func CheckFileMd5(md5 string) (err error, uploads []model.ExaSimpleUploader, isDone bool)

func ClearCasbin

func ClearCasbin(v int, p ...string) bool

func CopyAuthority

func CopyAuthority(copyInfo response.SysAuthorityCopyResponse) (err error, authority model.SysAuthority)

func Create

func Create(wk model.SysWorkflow) error

func CreateApi

func CreateApi(api model.SysApi) (err error)

func CreateAuthority

func CreateAuthority(auth model.SysAuthority) (err error, authority model.SysAuthority)

func CreateExaCustomer

func CreateExaCustomer(e model.ExaCustomer) (err error)

func CreateFileChunk

func CreateFileChunk(id uint, fileChunkPath string, fileChunkNumber int) error

func CreateSysDictionary

func CreateSysDictionary(sysDictionary model.SysDictionary) (err error)

func CreateSysDictionaryDetail

func CreateSysDictionaryDetail(sysDictionaryDetail model.SysDictionaryDetail) (err error)

func CreateSysOperationRecord

func CreateSysOperationRecord(sysOperationRecord model.SysOperationRecord) (err error)

func CreateTemp

func CreateTemp(autoCode model.AutoCodeStruct) (err error)

func DeleteApi

func DeleteApi(api model.SysApi) (err error)

func DeleteAuthority

func DeleteAuthority(auth *model.SysAuthority) (err error)

func DeleteBaseMenu

func DeleteBaseMenu(id float64) (err error)

func DeleteExaCustomer

func DeleteExaCustomer(e model.ExaCustomer) (err error)

func DeleteFile

func DeleteFile(file model.ExaFileUploadAndDownload) (err error)

func DeleteFileChunk

func DeleteFileChunk(fileMd5 string, fileName string, filePath string) error

func DeleteSysDictionary

func DeleteSysDictionary(sysDictionary model.SysDictionary) (err error)

func DeleteSysDictionaryDetail

func DeleteSysDictionaryDetail(sysDictionaryDetail model.SysDictionaryDetail) (err error)

func DeleteSysOperationRecord

func DeleteSysOperationRecord(sysOperationRecord model.SysOperationRecord) (err error)

func DeleteSysOperationRecordByIds

func DeleteSysOperationRecordByIds(ids request.IdsReq) (err error)

func DeleteUser

func DeleteUser(id float64) (err error)

func EmailTest

func EmailTest() (err error)

func FindFile

func FindFile(id uint) (error, model.ExaFileUploadAndDownload)

func FindOrCreateFile

func FindOrCreateFile(fileMd5 string, fileName string, chunkTotal int) (err error, file model.ExaFile)

func FindUserById

func FindUserById(id int) (err error, user *model.SysUser)

func FindUserByUuid

func FindUserByUuid(uuid string) (err error, user *model.SysUser)

func GetAPIInfoList

func GetAPIInfoList(api model.SysApi, info request.PageInfo, order string, desc bool) (err error, list interface{}, total int64)

func GetAllApis

func GetAllApis() (err error, apis []model.SysApi)

func GetAllTplFile

func GetAllTplFile(pathName string, fileList []string) ([]string, error)

func GetApiById

func GetApiById(id float64) (err error, api model.SysApi)

func GetAuthorityInfo

func GetAuthorityInfo(auth model.SysAuthority) (err error, sa model.SysAuthority)

func GetAuthorityInfoList

func GetAuthorityInfoList(info request.PageInfo) (err error, list interface{}, total int64)

func GetBaseMenuById

func GetBaseMenuById(id float64) (err error, menu model.SysBaseMenu)

func GetBaseMenuTree

func GetBaseMenuTree() (err error, menus []model.SysBaseMenu)

func GetColumn

func GetColumn(tableName string, dbName string) (err error, Columns []request.ColumnReq)

func GetCustomerInfoList

func GetCustomerInfoList(sysUserAuthorityID string, info request.PageInfo) (err error, list interface{}, total int64)

func GetDB

func GetDB() (err error, DBNames []request.DBReq)

func GetExaCustomer

func GetExaCustomer(id uint) (err error, customer model.ExaCustomer)

func GetFileRecordInfoList

func GetFileRecordInfoList(info request.PageInfo) (err error, list interface{}, total int64)

func GetInfoList

func GetInfoList() (err error, list interface{}, total int64)

func GetMenuAuthority

func GetMenuAuthority(info *request.GetAuthorityId) (err error, menus []model.SysMenu)

func GetMenuTree

func GetMenuTree(authorityId string) (err error, menus []model.SysMenu)

func GetPolicyPathByAuthorityId

func GetPolicyPathByAuthorityId(authorityId string) (pathMaps []request.CasbinInfo)

func GetRedisJWT

func GetRedisJWT(userName string) (err error, redisJWT string)

func GetServerInfo

func GetServerInfo() (server *utils.Server, err error)

func GetSysDictionary

func GetSysDictionary(Type string, Id uint) (err error, sysDictionary model.SysDictionary)

func GetSysDictionaryDetail

func GetSysDictionaryDetail(id uint) (err error, sysDictionaryDetail model.SysDictionaryDetail)

func GetSysDictionaryDetailInfoList

func GetSysDictionaryDetailInfoList(info request.SysDictionaryDetailSearch) (err error, list interface{}, total int64)

func GetSysDictionaryInfoList

func GetSysDictionaryInfoList(info request.SysDictionarySearch) (err error, list interface{}, total int64)

func GetSysOperationRecord

func GetSysOperationRecord(id uint) (err error, sysOperationRecord model.SysOperationRecord)

func GetSysOperationRecordInfoList

func GetSysOperationRecordInfoList(info request.SysOperationRecordSearch) (err error, list interface{}, total int64)

func GetSystemConfig

func GetSystemConfig() (err error, conf config.Server)

func GetTables

func GetTables(dbName string) (err error, TableNames []request.TableReq)

func GetUserInfoList

func GetUserInfoList(info request.PageInfo) (err error, list interface{}, total int64)

func IsBlacklist

func IsBlacklist(jwt string) bool

func JsonInBlacklist

func JsonInBlacklist(jwtList model.JwtBlacklist) (err error)

func Login

func Login(u *model.SysUser) (err error, userInter *model.SysUser)

func MergeFileMd5

func MergeFileMd5(md5 string, fileName string) (err error)

func ParamsMatch

func ParamsMatch(fullNameKey1 string, key2 string) bool

func ParamsMatchFunc

func ParamsMatchFunc(args ...interface{}) (interface{}, error)

func Register

func Register(u model.SysUser) (err error, userInter model.SysUser)

func SaveChunk

func SaveChunk(uploader model.ExaSimpleUploader) (err error)

func SetDataAuthority

func SetDataAuthority(auth model.SysAuthority) error

func SetMenuAuthority

func SetMenuAuthority(auth *model.SysAuthority) error

func SetRedisJWT

func SetRedisJWT(jwt string, userName string) (err error)

func SetSystemConfig

func SetSystemConfig(system model.System) (err error)

func SetUserAuthority

func SetUserAuthority(uuid uuid.UUID, authorityId string) (err error)

func SetUserInfo

func SetUserInfo(reqUser model.SysUser) (err error, user model.SysUser)

func UpdateApi

func UpdateApi(api model.SysApi) (err error)

func UpdateAuthority

func UpdateAuthority(auth model.SysAuthority) (err error, authority model.SysAuthority)

func UpdateBaseMenu

func UpdateBaseMenu(menu model.SysBaseMenu) (err error)

func UpdateCasbin

func UpdateCasbin(authorityId string, casbinInfos []request.CasbinInfo) error

func UpdateCasbinApi

func UpdateCasbinApi(oldPath string, newPath string, oldMethod string, newMethod string) error

func UpdateExaCustomer

func UpdateExaCustomer(e *model.ExaCustomer) (err error)

func UpdateSysDictionary

func UpdateSysDictionary(sysDictionary *model.SysDictionary) (err error)

func UpdateSysDictionaryDetail

func UpdateSysDictionaryDetail(sysDictionaryDetail *model.SysDictionaryDetail) (err error)

func Upload

func UploadFile

func UploadFile(header *multipart.FileHeader, noSave string) (err error, file model.ExaFileUploadAndDownload)

Types

This section is empty.

Jump to

Keyboard shortcuts

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