Documentation ¶
Index ¶
- Variables
- func NewChatgptRepo(data *Data, logger log.Logger) biz.ChatgptRepo
- func NewDiscovery(conf *conf.Registry) registry.Discovery
- func NewMysqlCmd(conf *conf.Bootstrap, logger log.Logger) *gorm.DB
- func NewRedisClient(conf *conf.Data) *redis.Client
- func NewRedisCmd(conf *conf.Data, logger log.Logger) redis.Cmdable
- func NewRegistrar(conf *conf.Registry) registry.Registrar
- func Paginate(page, pageSize int64) func(db *gorm.DB) *gorm.DB
- type BaseFields
- type ChatgptRepo
- type Data
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewDiscovery, NewRegistrar, NewRedisCmd, NewMysqlCmd, NewRedisClient, NewChatgptRepo, )
ProviderSet is data providers.
Functions ¶
func NewChatgptRepo ¶
func NewChatgptRepo(data *Data, logger log.Logger) biz.ChatgptRepo
Types ¶
type BaseFields ¶
type ChatgptRepo ¶
type ChatgptRepo struct {
// contains filtered or unexported fields
}
func (ChatgptRepo) CreateGptMessage ¶
func (r ChatgptRepo) CreateGptMessage(ctx context.Context, data *domain.CreateGptMessageReq) (*domain.CreateGptMessageRes, error)
Click to show internal directories.
Click to hide internal directories.