Documentation ¶
Index ¶
- func CreateCompany(company *model.Company) (err error)
- func CreateRoom(room *model.Room, photo []string) (err error)
- func DeleteCompany(company model.Company) (err error)
- func DeleteRoom(room model.Room) (err error)
- func DeleteUser(user model.User) (err error)
- func FindAdminById(id int) (user model.User, err error)
- func FindAdminByMobile(mobile string) (user model.User, err error)
- func FindCompanyById(id int) (company model.Company, err error)
- func FindCompanyByName(name string) (company model.Company, err error)
- func FindCompanyList(page int64, pageSize int64) (companies []model.Company, pages int64, totalCount int64, err error)
- func FindRoomById(id int) (room model.Room, err error)
- func FindRoomList(page int64, pageSize int64, company int64) (rooms []model.Room, pages int64, totalCount int64, err error)
- func FindRoomPhoto(roomId int) (photos []model.Photo, err error)
- func FindUserById(id int) (user model.User, err error)
- func FindUserList(page int64, pageSize int64, company int64) (users []model.User, pages int64, totalCount int64, err error)
- func UpdateCompany(company model.Company) (err error)
- func UpdateRoom(room model.Room, photo []string) (err error)
- func UpdateUser(user model.User) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCompany ¶
func DeleteCompany ¶
func DeleteRoom ¶
func DeleteUser ¶
func FindCompanyList ¶
func FindRoomList ¶
func FindUserList ¶
func UpdateCompany ¶
func UpdateUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.