repository

package
v0.0.0-...-d7fecdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIQuestion

type AIQuestion interface {
	GetResult(string) ([]domain.QuestionSubmissionInfo, error)

	GetCompetitorAndSubmission(string, types.Account) (
		isCompetitor bool, highestScore int,
		submission domain.QuestionSubmission,
		err error,
	)

	GetQuestions(pool string, choice, completion []int) (
		[]domain.ChoiceQuestion, []domain.CompletionQuestion, error,
	)

	GetSubmission(qid string, user types.Account, date string) (
		domain.QuestionSubmission, error,
	)

	SaveSubmission(qid string, v *domain.QuestionSubmission) (string, error)
}

type ApiInfo

type ApiInfo interface {
	GetApiInfo(domain.ModelName) (domain.ApiInfo, error)
}

type ApiService

type ApiService interface {
	ApplyApi(*domain.UserApiRecord) error
	GetApiByUserModel(types.Account, domain.ModelName) (domain.UserApiRecord, error)
	GetApiByUser(types.Account) ([]domain.UserApiRecord, error)
	AddApiCallCount(types.Account, domain.ModelName, int) error
	UpdateToken(types.Account, domain.ModelName, string, string, int) error
}

type LuoJia

type LuoJia interface {
	Save(*domain.UserLuoJiaRecord) (domain.LuoJiaRecord, error)
	List(types.Account) ([]domain.LuoJiaRecord, error)
}

type WuKong

type WuKong interface {
	ListSamples(string, []int) ([]string, error)
}

type WuKongPicture

type WuKongPicture interface {
	GetVersion(types.Account) (int, error)
	ListLikesByUserName(types.Account) ([]domain.WuKongPicture, int, error)
	ListPublicsByUserName(types.Account) ([]domain.WuKongPicture, int, error)
	SaveLike(types.Account, *domain.WuKongPicture, int) (string, error)
	SavePublic(*domain.WuKongPicture, int) (string, error)
	DeleteLike(types.Account, string) error
	DeletePublic(types.Account, string) error
	GetLikeByUserName(types.Account, string) (domain.WuKongPicture, error)
	GetPublicByUserName(types.Account, string) (domain.WuKongPicture, error)
	GetPublicsGlobal() ([]domain.WuKongPicture, error)
	GetOfficialPublicsGlobal() ([]domain.WuKongPicture, error)
	UpdatePublicPicture(types.Account, string, int, *domain.WuKongPicture) error
}

type WuKongTaskResp

type WuKongTaskResp struct {
	Id        uint64
	User      types.Account
	Style     string
	Desc      domain.WuKongPictureDesc
	CreatedAt commondomain.Time
	Status    asyncdomain.TaskStatus
	Links     asyncdomain.Links
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL