Documentation ¶
Index ¶
- Variables
- type ChatbotRepository
- type MysqlChatbotRepository
- func (r *MysqlChatbotRepository) Create(ctx context.Context, bot *pb.Bot) (int64, error)
- func (r *MysqlChatbotRepository) CreateGroup(ctx context.Context, group *pb.Group) (int64, error)
- func (r *MysqlChatbotRepository) CreateGroupBot(ctx context.Context, groupId int64, bot *pb.Bot) error
- func (r *MysqlChatbotRepository) CreateGroupTag(ctx context.Context, tag *pb.GroupTag) (int64, error)
- func (r *MysqlChatbotRepository) Delete(ctx context.Context, id int64) error
- func (r *MysqlChatbotRepository) DeleteGroup(ctx context.Context, id int64) error
- func (r *MysqlChatbotRepository) DeleteGroupBot(ctx context.Context, groupId, botId int64) error
- func (r *MysqlChatbotRepository) DeleteGroupTag(ctx context.Context, id int64) error
- func (r *MysqlChatbotRepository) GetByID(ctx context.Context, id int64) (pb.Bot, error)
- func (r *MysqlChatbotRepository) GetByIdentifier(ctx context.Context, identifier string) (pb.Bot, error)
- func (r *MysqlChatbotRepository) GetByUUID(ctx context.Context, uuid string) (pb.Bot, error)
- func (r *MysqlChatbotRepository) GetGroup(ctx context.Context, id int64) (pb.Group, error)
- func (r *MysqlChatbotRepository) GetGroupBotSetting(ctx context.Context, groupId, botId int64) ([]*pb.KV, error)
- func (r *MysqlChatbotRepository) GetGroupBySequence(ctx context.Context, userId, sequence int64) (pb.Group, error)
- func (r *MysqlChatbotRepository) GetGroupByUUID(ctx context.Context, uuid string) (pb.Group, error)
- func (r *MysqlChatbotRepository) GetGroupSetting(ctx context.Context, groupId int64) ([]*pb.KV, error)
- func (r *MysqlChatbotRepository) List(ctx context.Context) ([]*pb.Bot, error)
- func (r *MysqlChatbotRepository) ListGroup(ctx context.Context, userId int64) ([]*pb.Group, error)
- func (r *MysqlChatbotRepository) ListGroupBot(ctx context.Context, groupId int64) ([]*pb.Bot, error)
- func (r *MysqlChatbotRepository) ListGroupTag(ctx context.Context, groupId int64) ([]*pb.GroupTag, error)
- func (r *MysqlChatbotRepository) UpdateGroup(ctx context.Context, group *pb.Group) error
- func (r *MysqlChatbotRepository) UpdateGroupBotSetting(ctx context.Context, groupId, botId int64, kvs []*pb.KV) error
- func (r *MysqlChatbotRepository) UpdateGroupSetting(ctx context.Context, groupId int64, kvs []*pb.KV) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewMysqlChatbotRepository)
Functions ¶
This section is empty.
Types ¶
type ChatbotRepository ¶
type ChatbotRepository interface { GetByID(ctx context.Context, id int64) (pb.Bot, error) GetByUUID(ctx context.Context, uuid string) (pb.Bot, error) GetByIdentifier(ctx context.Context, identifier string) (pb.Bot, error) List(ctx context.Context) ([]*pb.Bot, error) Create(ctx context.Context, bot *pb.Bot) (int64, error) Delete(ctx context.Context, id int64) error ListGroupBot(ctx context.Context, groupId int64) ([]*pb.Bot, error) CreateGroupBot(ctx context.Context, groupId int64, bot *pb.Bot) error DeleteGroupBot(ctx context.Context, groupId, botId int64) error GetGroup(ctx context.Context, id int64) (pb.Group, error) GetGroupByUUID(ctx context.Context, uuid string) (pb.Group, error) GetGroupBySequence(ctx context.Context, userId, sequence int64) (pb.Group, error) ListGroup(ctx context.Context, userId int64) ([]*pb.Group, error) CreateGroup(ctx context.Context, group *pb.Group) (int64, error) DeleteGroup(ctx context.Context, id int64) error UpdateGroup(ctx context.Context, group *pb.Group) error UpdateGroupSetting(ctx context.Context, groupId int64, kvs []*pb.KV) error UpdateGroupBotSetting(ctx context.Context, groupId, botId int64, kvs []*pb.KV) error GetGroupSetting(ctx context.Context, groupId int64) ([]*pb.KV, error) GetGroupBotSetting(ctx context.Context, groupId, botId int64) ([]*pb.KV, error) ListGroupTag(ctx context.Context, groupId int64) ([]*pb.GroupTag, error) CreateGroupTag(ctx context.Context, tag *pb.GroupTag) (int64, error) DeleteGroupTag(ctx context.Context, id int64) error }
func CreateChatbotRepository ¶
func CreateChatbotRepository(id string) (ChatbotRepository, error)
type MysqlChatbotRepository ¶
type MysqlChatbotRepository struct {
// contains filtered or unexported fields
}
func (*MysqlChatbotRepository) CreateGroup ¶
func (*MysqlChatbotRepository) CreateGroupBot ¶
func (*MysqlChatbotRepository) CreateGroupTag ¶
func (*MysqlChatbotRepository) Delete ¶
func (r *MysqlChatbotRepository) Delete(ctx context.Context, id int64) error
func (*MysqlChatbotRepository) DeleteGroup ¶
func (r *MysqlChatbotRepository) DeleteGroup(ctx context.Context, id int64) error
func (*MysqlChatbotRepository) DeleteGroupBot ¶
func (r *MysqlChatbotRepository) DeleteGroupBot(ctx context.Context, groupId, botId int64) error
func (*MysqlChatbotRepository) DeleteGroupTag ¶
func (r *MysqlChatbotRepository) DeleteGroupTag(ctx context.Context, id int64) error
func (*MysqlChatbotRepository) GetByIdentifier ¶
func (*MysqlChatbotRepository) GetGroupBotSetting ¶
func (*MysqlChatbotRepository) GetGroupBySequence ¶
func (*MysqlChatbotRepository) GetGroupByUUID ¶
func (*MysqlChatbotRepository) GetGroupSetting ¶
func (*MysqlChatbotRepository) ListGroupBot ¶
func (*MysqlChatbotRepository) ListGroupTag ¶
func (*MysqlChatbotRepository) UpdateGroup ¶
func (*MysqlChatbotRepository) UpdateGroupBotSetting ¶
func (*MysqlChatbotRepository) UpdateGroupSetting ¶
Click to show internal directories.
Click to hide internal directories.