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
20 lines
413 B
package bully_reward_service
|
|
|
|
import (
|
|
"errors"
|
|
"hudongzhuanjia/models"
|
|
)
|
|
|
|
func GetCurrentBullyScreen(activityId int64) (map[string]interface{}, error) {
|
|
server := new(models.BullyScreenServer)
|
|
exist, err := server.GetByActivityId(activityId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
if !exist {
|
|
return nil, errors.New("霸屏不存在")
|
|
}
|
|
return map[string]interface{}{
|
|
"bully_reward": server,
|
|
}, nil
|
|
}
|