|
@ -9,6 +9,7 @@ import ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func (c *ControllerV1) GetChannel(ctx context.Context, req *v1.GetChannelReq) (res *v1.GetChannelRes, err error) { |
|
|
func (c *ControllerV1) GetChannel(ctx context.Context, req *v1.GetChannelReq) (res *v1.GetChannelRes, err error) { |
|
|
|
|
|
res = &v1.GetChannelRes{} |
|
|
err = dao.GoChannels.Ctx(ctx).WherePri(req.Id).Scan(&res.GoChannels) |
|
|
err = dao.GoChannels.Ctx(ctx).WherePri(req.Id).Scan(&res.GoChannels) |
|
|
err = dao.GoShows.Ctx(ctx).With(entity.GoUsers{}).Where("channel_id =?", req.Id).Scan(&res.List) |
|
|
err = dao.GoShows.Ctx(ctx).With(entity.GoUsers{}).Where("channel_id =?", req.Id).Scan(&res.List) |
|
|
return |
|
|
return |
|
|