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 }