ITopicService

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	CreateTopic(req ReqCreateTopic) (topicID m.IDTopic, reject error)
	UpdateTopicIntro(req ReqUpdateTopicIntro) (reject error)
	UpdateTopicCoverPhoto(req ReqUpdateTopicCoverPhoto) (reject error)
}

type ReqCreateTopic

type ReqCreateTopic struct {
	Title      string `json:"title"`
	CoverPhoto string `json:"coverPhoto"`
	Intro      string `json:"intro"`
}

func (ReqCreateTopic) VD

func (v ReqCreateTopic) VD(r *vd.Rule)

type ReqUpdateTopicCoverPhoto

type ReqUpdateTopicCoverPhoto struct {
	TopicID    m.IDTopic `json:"topicID"`
	CoverPhoto string    `json:"coverPhoto"`
}

func (ReqUpdateTopicCoverPhoto) VD

func (v ReqUpdateTopicCoverPhoto) VD(r *vd.Rule)

type ReqUpdateTopicIntro

type ReqUpdateTopicIntro struct {
	TopicID m.IDTopic `json:"topicID"`
	Intro   string    `json:"intro"`
}

func (ReqUpdateTopicIntro) VD

func (v ReqUpdateTopicIntro) VD(r *vd.Rule)

Jump to

Keyboard shortcuts

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