Documentation ¶
Overview ¶
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-01 17:16:01 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-03 19:43:46 * @FilePath: \bluebell\dao\mysql\community.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-09-30 13:50:19 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-02 18:51:56 * @FilePath: \bluebell\dao\mysql\user.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
Index ¶
- func ComparePassWord(user *models.User) error
- func CreatePost(post *models.Post) (err error)
- func GetCommunityDetailById(id int) (CommunityDetail models.CommunityDetail, err error)
- func GetCommunityList() (CommunityList []models.CommunityList, err error)
- func GetPostDetailForId(id int) (post models.Post, err error)
- func GetPostList(page, pageSize int) (posts []*models.Post, err error)
- func GetPostListByIds(ids []string) (posts []*models.Post, err error)
- func GetUserById(id int) (User models.User, err error)
- func HavingUser(username string) error
- func Paginate(page, pageSize int) func(db *gorm.DB) *gorm.DB
- func SignUpUser(param *models.ParamSignUp) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePost ¶
func GetCommunityDetailById ¶
func GetCommunityDetailById(id int) (CommunityDetail models.CommunityDetail, err error)
func GetCommunityList ¶
func GetCommunityList() (CommunityList []models.CommunityList, err error)
func GetPostListByIds ¶
根据ids查询
func HavingUser ¶
Types ¶
This section is empty.