golang-im聊天
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

im_package_repo.go 334 B

2 years ago
1 year ago
2 years ago
123456789101112131415161718
  1. package repo
  2. import (
  3. "gim/internal/business/domain/user/model"
  4. )
  5. type imPackageRepo struct{}
  6. var ImPackageRepo = new(imPackageRepo)
  7. // Get 获取单个套餐包
  8. func (*imPackageRepo) Get(id int64) (*model.ImPackage, error) {
  9. imPackage, err := ImPackageDao.Get(id)
  10. if err != nil {
  11. return nil, err
  12. }
  13. return imPackage, err
  14. }