Documentation ¶
Index ¶
- func CountApplicationDownloadLog(applicationId int64) (int64, error)
- func CountDocViewLog(docId int64) (int64, error)
- func CreateApplication(productId, uid int64, name, url, versionName string, versionCode int64, ...) bool
- func CreateDoc(productId, uid int64, name, ext, url, createTime string) error
- func CreateMenu(menu *models.Menu) bool
- func CreateNewUser(username, name, roleList string) bool
- func CreateProduct(projectId int64, productName string) error
- func CreateProject(name string) error
- func CreateRole(name string) bool
- func CreateRoleMenu(rid, mid int64) bool
- func CreateRolePermission(rid int64, allowAccessPath, operation string) bool
- func CreateUser(username, name, pwd string) bool
- func CreateUserRole(uid, pid int64) bool
- func DeleteSession(sessionId string)
- func GetAllAdminMenus() ([]*models.AdminMenu, error)
- func GetAllDocsByPid(projectId int64) ([]*models.Doc, error)
- func GetAllProjectWithDocs() []*models.Project
- func GetAllProjectWithProducts() []*models.Project
- func GetAllProjects() []*models.Project
- func GetAllRoles() ([]*models.Role, error)
- func GetAllSession() []*models.Session
- func GetAllUsers() ([]*models.User, error)
- func GetApplicationById(cid int64) *models.Application
- func GetApplicationsByProductId(productId int64) []*models.Application
- func GetDefaultMenu() []*models.Menu
- func GetDocById(id int64) *models.Doc
- func GetDocViewLogByDocId(docId int64) ([]*models.DocViewLog, error)
- func GetDownloadLogByApplicationId(applicationId int64) ([]*models.ApplicationDownloadLog, error)
- func GetMenuByMid(mid int64) *models.Menu
- func GetProductionsByProjectId(projectId int64) []*models.Product
- func GetRoleMenusByRid(rid int64) []*models.RoleMenu
- func GetRolePermissionsByRid(rid int64) []*models.RolePermission
- func GetUser(username string) *models.User
- func GetUserById(id int64) *models.User
- func GetUserPermission(uid int64) map[string]map[string]bool
- func GetUserRoleMenu(uid int64) []*models.Menu
- func GetUserRolesByUid(uid int64) []*models.UserRole
- func InsertSession(uid int64) *models.Session
- func RecordApplicationDownloadLog(uid int64, cid int64) bool
- func RecordDocViewLog(uid, docId int64) error
- func ResetPassword(uid int64) error
- func UpdateUser(user *models.User, ip string)
- func UpdateUserPassword(username string, password string) error
- func UserRoleModify(uid int64, roleList string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDocViewLog ¶
func CreateApplication ¶
func CreateMenu ¶
func CreateNewUser ¶
func CreateProduct ¶
func CreateProject ¶
func CreateRole ¶
func CreateRoleMenu ¶
func CreateRolePermission ¶
func CreateUser ¶
func CreateUserRole ¶
func DeleteSession ¶
func DeleteSession(sessionId string)
func GetAllAdminMenus ¶
func GetAllProjectWithDocs ¶
func GetAllProjects ¶
func GetAllRoles ¶
func GetAllSession ¶
func GetAllUsers ¶
func GetApplicationById ¶
func GetApplicationById(cid int64) *models.Application
func GetApplicationsByProductId ¶
func GetApplicationsByProductId(productId int64) []*models.Application
func GetDefaultMenu ¶
func GetDocById ¶
func GetDocViewLogByDocId ¶
func GetDocViewLogByDocId(docId int64) ([]*models.DocViewLog, error)
func GetDownloadLogByApplicationId ¶
func GetDownloadLogByApplicationId(applicationId int64) ([]*models.ApplicationDownloadLog, error)
func GetMenuByMid ¶
func GetRoleMenusByRid ¶
func GetRolePermissionsByRid ¶
func GetRolePermissionsByRid(rid int64) []*models.RolePermission
func GetUserById ¶
func GetUserRoleMenu ¶
func GetUserRolesByUid ¶
func InsertSession ¶
func RecordDocViewLog ¶
func ResetPassword ¶
func UpdateUser ¶
func UpdateUserPassword ¶
func UserRoleModify ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.