init: init refactor

This commit is contained in:
Blizzard
2026-04-27 00:02:18 +08:00
commit e515f6a287
360 changed files with 30713 additions and 0 deletions
@@ -0,0 +1,34 @@
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package channel
import (
"context"
"sundynix-micro-go/app/radio/api/internal/svc"
"sundynix-micro-go/app/radio/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type CreateChannelLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
// 创建频道
func NewCreateChannelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateChannelLogic {
return &CreateChannelLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *CreateChannelLogic) CreateChannel(req *types.ChannelReq) error {
// todo: add your logic here and delete this line
return nil
}
@@ -0,0 +1,34 @@
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package channel
import (
"context"
"sundynix-micro-go/app/radio/api/internal/svc"
"sundynix-micro-go/app/radio/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type DeleteChannelLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
// 删除频道
func NewDeleteChannelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteChannelLogic {
return &DeleteChannelLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *DeleteChannelLogic) DeleteChannel(req *types.IdsReq) error {
// todo: add your logic here and delete this line
return nil
}
@@ -0,0 +1,34 @@
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package channel
import (
"context"
"sundynix-micro-go/app/radio/api/internal/svc"
"sundynix-micro-go/app/radio/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type GetChannelDetailLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
// 频道详情
func NewGetChannelDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetChannelDetailLogic {
return &GetChannelDetailLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *GetChannelDetailLogic) GetChannelDetail(req *types.IdPathReq) error {
// todo: add your logic here and delete this line
return nil
}
@@ -0,0 +1,34 @@
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package channel
import (
"context"
"sundynix-micro-go/app/radio/api/internal/svc"
"sundynix-micro-go/app/radio/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type GetChannelListLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
// 频道列表
func NewGetChannelListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetChannelListLogic {
return &GetChannelListLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *GetChannelListLogic) GetChannelList(req *types.ChannelListReq) error {
// todo: add your logic here and delete this line
return nil
}
@@ -0,0 +1,34 @@
// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package channel
import (
"context"
"sundynix-micro-go/app/radio/api/internal/svc"
"sundynix-micro-go/app/radio/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type UpdateChannelLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
// 更新频道
func NewUpdateChannelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateChannelLogic {
return &UpdateChannelLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *UpdateChannelLogic) UpdateChannel(req *types.ChannelUpdateReq) error {
// todo: add your logic here and delete this line
return nil
}