21 lines
1.0 KiB
Go
21 lines
1.0 KiB
Go
package config
|
|
|
|
import (
|
|
"context"
|
|
v1 "likedream-goframe/internal/api/v1"
|
|
"likedream-goframe/internal/ent"
|
|
"likedream-goframe/internal/utils"
|
|
)
|
|
|
|
type IConfigCtrlV1 interface {
|
|
Get(ctx context.Context, req *v1.ConfigGetReq) (*utils.Response[*ent.SysConfig], error)
|
|
PublicGet(ctx context.Context, req *v1.ConfigPublicGetReq) (*utils.Response[*ent.SysConfig], error)
|
|
List(ctx context.Context, req *v1.ConfigListReq) (*utils.Response[[]*ent.SysConfig], error)
|
|
Update(ctx context.Context, req *v1.ConfigUpdateReq) (*utils.Response[any], error)
|
|
GetPriceConfig(ctx context.Context, req *v1.PriceConfigGetReq) (*utils.Response[*v1.PriceConfigResp], error)
|
|
UpdatePriceConfig(ctx context.Context, req *v1.PriceConfigUpdateReq) (*utils.Response[any], error)
|
|
GetSmtpConfig(ctx context.Context, req *v1.SmtpConfigGetReq) (*utils.Response[any], error)
|
|
UpdateSmtpConfig(ctx context.Context, req *v1.SmtpConfigUpdateReq) (*utils.Response[any], error)
|
|
TestSmtp(ctx context.Context, req *v1.SmtpTestReq) (*utils.Response[any], error)
|
|
}
|