32 lines
682 B
Go
32 lines
682 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"sundynix-micro-go/app/radio/rpc/internal/svc"
|
|
"sundynix-micro-go/app/radio/rpc/radio"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type CreateChannelLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewCreateChannelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateChannelLogic {
|
|
return &CreateChannelLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// 频道
|
|
func (l *CreateChannelLogic) CreateChannel(in *radio.CreateChannelReq) (*radio.CreateChannelResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &radio.CreateChannelResp{}, nil
|
|
}
|