Documentation ¶
Index ¶
- func AddDeparts(updDep Departs) error
- func AddNotices(updDep Notices) error
- func AddPermissions(updDep UsersPermissions) error
- func AddPositions(updPos Positions) error
- func AddProfile(updPro UsersProfile) error
- func AddUserProfile(updUser Users, updPro UsersProfile) error
- func ChangeDepartStatus(id int64, status int) error
- func ChangeNoticeStatus(id int64, status int) error
- func ChangePositionStatus(id int64, status int) error
- func ChangeUserAvatar(id int64, avatar string) error
- func ChangeUserStatus(id int64, status int) error
- func CountDeparts(condArr map[string]string) int64
- func CountNotices(condArr map[string]string) int64
- func CountPositions(condArr map[string]string) int64
- func CountUser(condArr map[string]string) int64
- func DeleteNotice(id int64) error
- func GetAvatarUserid(id int64) string
- func GetDepartmentsNameForUserid(id int64) string
- func GetDepartsName(id int64) string
- func GetPermissions(id int64) string
- func GetPositionsName(id int64) string
- func GetPositionsNameForUserid(id int64) string
- func GetRealname(id int64) string
- func GetUserEmail(id int64) string
- func UpdateDeparts(id int64, updDep Departs) error
- func UpdateNotices(id int64, upd Notices) error
- func UpdatePassword(id int64, oldPawd string, newPwd string) error
- func UpdatePermissions(id int64, updDep UsersPermissions) error
- func UpdatePositions(id int64, updPos Positions) error
- func UpdateProfile(id int64, updPro UsersProfile) error
- func UpdateUser(id int64, updUser Users) error
- type Departs
- type Notices
- type Positions
- type Users
- type UsersFind
- type UsersPermissions
- type UsersPermissionsAll
- type UsersProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDeparts ¶
func AddNotices ¶
func AddPermissions ¶
func AddPermissions(updDep UsersPermissions) error
func AddPositions ¶
func DeleteNotice ¶
func GetAvatarUserid ¶
func GetDepartsName ¶
func GetPermissions ¶
func GetPositionsName ¶
func GetRealname ¶
func GetUserEmail ¶
func UpdateDeparts ¶
func UpdateNotices ¶
func UpdatePermissions ¶
func UpdatePermissions(id int64, updDep UsersPermissions) error
func UpdatePositions ¶
Types ¶
type Notices ¶
type Notices struct { Id int64 `orm:"pk;column(noticeid);"` Title string Content string Created int64 Status int }
func GetNotices ¶
func ListNotices ¶
type Positions ¶
type Positions struct { Id int64 `orm:"pk;column(positionid);"` Name string Desc string Status int }
func GetPositions ¶
func ListPositions ¶
type Users ¶
type Users struct { Id int64 `orm:"pk;column(userid);"` Profile *UsersProfile `orm:"rel(one);"` Username string Password string Avatar string Status int }
type UsersPermissions ¶
type UsersPermissions struct { Id int64 `orm:"pk;column(userid);"` Permission string Model string Modelc string }
func GetPermissionsAllOld ¶
func GetPermissionsAllOld(id int64) (UsersPermissions, error)
func (*UsersPermissions) TableName ¶
func (this *UsersPermissions) TableName() string
type UsersPermissionsAll ¶
func GetPermissionsAll ¶
func GetPermissionsAll(id int64) (UsersPermissionsAll, error)
type UsersProfile ¶
Click to show internal directories.
Click to hide internal directories.