互动
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.

20 lines
413 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. package bully_reward_service
  2. import (
  3. "errors"
  4. "hudongzhuanjia/models"
  5. )
  6. func GetCurrentBullyScreen(activityId int64) (map[string]interface{}, error) {
  7. server := new(models.BullyScreenServer)
  8. exist, err := server.GetByActivityId(activityId)
  9. if err != nil {
  10. return nil, err
  11. }
  12. if !exist {
  13. return nil, errors.New("霸屏不存在")
  14. }
  15. return map[string]interface{}{
  16. "bully_reward": server,
  17. }, nil
  18. }