dao

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	SubTopicsName = "sub_topics"
)

Variables

This section is empty.

Functions

func DeleteTopicsByKey

func DeleteTopicsByKey(key string) error

DeleteTopicsByKey delete sub_topics by key

func InsertTopics

func InsertTopics(topic string) error

InsertTopics insert sub_topics

func QueryAllTopics

func QueryAllTopics() (*[]string, error)

QueryAllTopics return all sub_topics, if no error, SubTopics not null

Types

type SubTopics

type SubTopics struct {
	Topic string `orm:"column(topic); type(text); pk"`
}

Jump to

Keyboard shortcuts

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