ITopicDataStorage

package
v0.0.0-...-b274bd6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTopic

type CreateTopic struct {
	Title      string
	CoverPhoto string
	Intro      string
}

type CreateTopicLogCoverPhoto

type CreateTopicLogCoverPhoto struct {
	OldCoverPhoto string
	NewCoverPhoto string
}

type CreateTopicLogIntro

type CreateTopicLogIntro struct {
	OldIntro string
	NewIntro string
}

type Interface

type Interface interface {
	TopicByTitle(title string) (topic m.Topic, hasTopic bool, reject error)
	CreateTopic(data CreateTopic) (topic m.Topic, reject error)
	TopicByID(id m.IDTopic) (topic m.Topic, hasTopic bool, reject error)
	// MustHasTopicByID 封装了 TopicByID ,如果 hasTopic == false  时 reject != nil
	MustHasTopicByID(id m.IDTopic) (topic m.Topic, reject error)
	UpdateTopicIntro(topicID m.IDTopic, intro string) (reject error)
	UpdateTopicCoverPhoto(topicID m.IDTopic, coverPhoto string) (reject error)
	CreateTopicLogCoverPhoto(data CreateTopicLogCoverPhoto) (reject error)
	CreateTopicLogIntro(data CreateTopicLogIntro) (reject error)
}

Jump to

Keyboard shortcuts

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