topicservice

package
v0.2.71 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTopic added in v0.2.68

func DeleteTopic(topic *topics.Entity) error

func DeleteTopicWithDB added in v0.2.68

func DeleteTopicWithDB(conn *gorm.DB, topic *topics.Entity) error

func SaveTopicAndFirstPost

func SaveTopicAndFirstPost(input FirstPostWrite) error

func SaveTopicAndFirstPostWithDB

func SaveTopicAndFirstPostWithDB(conn *gorm.DB, input FirstPostWrite) error

func SaveTopicCategories

func SaveTopicCategories(topic *topics.Entity, categoryIDs []uint64) error

func SaveTopicCategoriesWithDB added in v0.2.68

func SaveTopicCategoriesWithDB(conn *gorm.DB, topic *topics.Entity, categoryIDs []uint64) error

func UpdateTopicProcessStatus added in v0.2.68

func UpdateTopicProcessStatus(topic *topics.Entity, nextStatus int8) error

func UpdateTopicProcessStatusWithDB added in v0.2.68

func UpdateTopicProcessStatusWithDB(conn *gorm.DB, topic *topics.Entity, nextStatus int8) error

func UpdateTopicStatus added in v0.2.68

func UpdateTopicStatus(topic *topics.Entity, nextStatus int8) error

func UpdateTopicStatusWithDB added in v0.2.68

func UpdateTopicStatusWithDB(conn *gorm.DB, topic *topics.Entity, nextStatus int8) error

Types

type FirstPostWrite

type FirstPostWrite struct {
	Topic       *topics.Entity
	FirstPost   *posts.Entity
	CategoryIDs []uint64
	Create      bool
}

Jump to

Keyboard shortcuts

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