services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// services
	UserServiceInstance           = NewUserService()
	GithubUserServiceInstance     = NewGithubUserService()
	CategoryServiceInstance       = NewCategoryService()
	TagServiceInstance            = NewTagService()
	ArticleServiceInstance        = NewArticleService()
	CommentServiceInstance        = NewCommentService()
	FavoriteServiceInstance       = NewFavoriteService()
	ArticleShareServiceInstance   = NewArticleShareService()
	ArticleTagServiceInstance     = NewArticleTagService()
	UserArticleTagServiceInstance = NewUserArticleTagService()
	TopicServiceInstance          = NewTopicService()
	TopicTagServiceInstance       = NewTopicTagService()
	MessageServiceInstance        = NewMessageService()
	OauthClientServiceInstance    = NewOauthClientService()
	OauthTokenServiceInstance     = NewOauthTokenService()

	Instances = []interface{}{
		UserServiceInstance, GithubUserServiceInstance, CategoryServiceInstance, TagServiceInstance,
		ArticleServiceInstance, CommentServiceInstance, FavoriteServiceInstance, ArticleShareServiceInstance,
		ArticleTagServiceInstance, UserArticleTagServiceInstance, TopicServiceInstance, TopicTagServiceInstance,
		MessageServiceInstance, OauthClientServiceInstance, OauthTokenServiceInstance,
	}
)

Functions

This section is empty.

Types

type ArticleService

type ArticleService struct {
	ArticleRepository    *repositories.ArticleRepository
	ArticleTagRepository *repositories.ArticleTagRepository
	TagRepository        *repositories.TagRepository
}

func NewArticleService

func NewArticleService() *ArticleService

func (*ArticleService) AddArticleTag

func (this *ArticleService) AddArticleTag(articleId, tagId int64)

添加文章标签

func (*ArticleService) CreateDailyShare

func (this *ArticleService) CreateDailyShare(title, summary string, userIds []int64)

每日分享 title: 标题,最终文章标题为:title + yyyy-MM-dd summary: 分享专题的描述 userIds: 用户编号

func (*ArticleService) DelArticleTag

func (this *ArticleService) DelArticleTag(articleId, tagId int64)

删除文章标签

func (*ArticleService) Delete

func (this *ArticleService) Delete(id int64) error

func (*ArticleService) GenerateRss

func (this *ArticleService) GenerateRss()

rss

func (*ArticleService) GenerateSitemap

func (this *ArticleService) GenerateSitemap()

sitemap

func (*ArticleService) Get

func (this *ArticleService) Get(id int64) *model.Article

func (*ArticleService) GetArticleInIds

func (this *ArticleService) GetArticleInIds(articleIds []int64) []model.Article

根据文章编号批量获取文章

func (*ArticleService) GetDailyContent

func (this *ArticleService) GetDailyContent(userIds []int64) string

func (*ArticleService) GetRelatedArticles

func (this *ArticleService) GetRelatedArticles(articleId int64) []model.Article

相关文章

func (*ArticleService) GetTagArticles

func (this *ArticleService) GetTagArticles(tagId int64, page int) (articles []model.Article, paging *simple.Paging)

标签文章列表

func (*ArticleService) GetUserNewestArticles

func (this *ArticleService) GetUserNewestArticles(userId int64) []model.Article

最新文章

func (*ArticleService) Publish

func (this *ArticleService) Publish(userId int64, title, summary, content, contentType string, categoryId int64,
	tagIds []int64, sourceUrl string) (article *model.Article, err error)

发布文章

func (*ArticleService) Query

func (this *ArticleService) Query(queries *simple.ParamQueries) (list []model.Article, paging *simple.Paging)

func (*ArticleService) QueryCnd

func (this *ArticleService) QueryCnd(cnd *simple.QueryCnd) (list []model.Article, err error)

func (*ArticleService) Scan

func (this *ArticleService) Scan(cb ScanArticleCallback)

扫描

func (*ArticleService) ScanWithDate

func (this *ArticleService) ScanWithDate(dateFrom, dateTo int64, cb ScanArticleCallback)

扫描

func (*ArticleService) Take

func (this *ArticleService) Take(where ...interface{}) *model.Article

func (*ArticleService) Update

func (this *ArticleService) Update(t *model.Article) error

func (*ArticleService) UpdateColumn

func (this *ArticleService) UpdateColumn(id int64, name string, value interface{}) error

func (*ArticleService) Updates

func (this *ArticleService) Updates(id int64, columns map[string]interface{}) error

type ArticleShareService

type ArticleShareService struct {
	ArticleShareRepository *repositories.ArticleShareRepository
}

func NewArticleShareService

func NewArticleShareService() *ArticleShareService

func (*ArticleShareService) Create

func (this *ArticleShareService) Create(t *model.ArticleShare) error

func (*ArticleShareService) Delete

func (this *ArticleShareService) Delete(id int64)

func (*ArticleShareService) Get

func (*ArticleShareService) Query

func (this *ArticleShareService) Query(queries *simple.ParamQueries) (list []model.ArticleShare, paging *simple.Paging)

func (*ArticleShareService) QueryCnd

func (this *ArticleShareService) QueryCnd(cnd *simple.QueryCnd) (list []model.ArticleShare, err error)

func (*ArticleShareService) Scan

扫描

func (*ArticleShareService) ScanWithDate

func (this *ArticleShareService) ScanWithDate(dateFrom, dateTo int64, cb ScanArticleShareCallback)

扫描

func (*ArticleShareService) Take

func (this *ArticleShareService) Take(where ...interface{}) *model.ArticleShare

func (*ArticleShareService) Update

func (this *ArticleShareService) Update(t *model.ArticleShare) error

func (*ArticleShareService) UpdateColumn

func (this *ArticleShareService) UpdateColumn(id int64, name string, value interface{}) error

func (*ArticleShareService) Updates

func (this *ArticleShareService) Updates(id int64, columns map[string]interface{}) error

type ArticleTagService

type ArticleTagService struct {
	ArticleTagRepository *repositories.ArticleTagRepository
}

func NewArticleTagService

func NewArticleTagService() *ArticleTagService

func (*ArticleTagService) Create

func (this *ArticleTagService) Create(t *model.ArticleTag) error

func (*ArticleTagService) Delete

func (this *ArticleTagService) Delete(id int64)

func (*ArticleTagService) Get

func (this *ArticleTagService) Get(id int64) *model.ArticleTag

func (*ArticleTagService) Query

func (this *ArticleTagService) Query(queries *simple.ParamQueries) (list []model.ArticleTag, paging *simple.Paging)

func (*ArticleTagService) QueryCnd

func (this *ArticleTagService) QueryCnd(cnd *simple.QueryCnd) (list []model.ArticleTag, err error)

func (*ArticleTagService) Take

func (this *ArticleTagService) Take(where ...interface{}) *model.ArticleTag

func (*ArticleTagService) Update

func (this *ArticleTagService) Update(t *model.ArticleTag) error

func (*ArticleTagService) UpdateColumn

func (this *ArticleTagService) UpdateColumn(id int64, name string, value interface{}) error

func (*ArticleTagService) Updates

func (this *ArticleTagService) Updates(id int64, columns map[string]interface{}) error

type CategoryService

type CategoryService struct {
	CategoryRepository *repositories.CategoryRepository
}

func NewCategoryService

func NewCategoryService() *CategoryService

func (*CategoryService) Create

func (this *CategoryService) Create(t *model.Category) error

func (*CategoryService) Delete

func (this *CategoryService) Delete(id int64)

func (*CategoryService) FindByName

func (this *CategoryService) FindByName(name string) *model.Category

func (*CategoryService) Get

func (this *CategoryService) Get(id int64) *model.Category

func (*CategoryService) GetCategories

func (this *CategoryService) GetCategories() ([]model.Category, error)

func (*CategoryService) GetOrCreate

func (this *CategoryService) GetOrCreate(name string) *model.Category

func (*CategoryService) Query

func (this *CategoryService) Query(queries *simple.ParamQueries) (list []model.Category, paging *simple.Paging)

func (*CategoryService) QueryCnd

func (this *CategoryService) QueryCnd(cnd *simple.QueryCnd) (list []model.Category, err error)

func (*CategoryService) Take

func (this *CategoryService) Take(where ...interface{}) *model.Category

func (*CategoryService) Update

func (this *CategoryService) Update(t *model.Category) error

func (*CategoryService) UpdateColumn

func (this *CategoryService) UpdateColumn(id int64, name string, value interface{}) error

func (*CategoryService) Updates

func (this *CategoryService) Updates(id int64, columns map[string]interface{}) error

type CommentService

type CommentService struct {
	CommentRepository *repositories.CommentRepository
}

func NewCommentService

func NewCommentService() *CommentService

func (*CommentService) Create

func (this *CommentService) Create(t *model.Comment) error

func (*CommentService) Delete

func (this *CommentService) Delete(id int64)

func (*CommentService) Get

func (this *CommentService) Get(id int64) *model.Comment

func (*CommentService) List

func (this *CommentService) List(entityType string, entityId int64, cursor int64) (list []model.Comment, err error)

func (*CommentService) Query

func (this *CommentService) Query(queries *simple.ParamQueries) (list []model.Comment, paging *simple.Paging)

func (*CommentService) QueryCnd

func (this *CommentService) QueryCnd(cnd *simple.QueryCnd) (list []model.Comment, err error)

func (*CommentService) Take

func (this *CommentService) Take(where ...interface{}) *model.Comment

func (*CommentService) Update

func (this *CommentService) Update(t *model.Comment) error

func (*CommentService) UpdateColumn

func (this *CommentService) UpdateColumn(id int64, name string, value interface{}) error

func (*CommentService) Updates

func (this *CommentService) Updates(id int64, columns map[string]interface{}) error

type FavoriteService

type FavoriteService struct {
	FavoriteRepository *repositories.FavoriteRepository
	ArticleRepository  *repositories.ArticleRepository
	TopicRepository    *repositories.TopicRepository
}

func NewFavoriteService

func NewFavoriteService() *FavoriteService

func (*FavoriteService) AddArticleFavorite

func (this *FavoriteService) AddArticleFavorite(userId, articleId int64) error

收藏文章

func (*FavoriteService) AddTopicFavorite

func (this *FavoriteService) AddTopicFavorite(userId, topicId int64) error

收藏帖子

func (*FavoriteService) Create

func (this *FavoriteService) Create(t *model.Favorite) error

func (*FavoriteService) Delete

func (this *FavoriteService) Delete(id int64)

func (*FavoriteService) Get

func (this *FavoriteService) Get(id int64) *model.Favorite

func (*FavoriteService) GetBy

func (this *FavoriteService) GetBy(entityType string, entityId int64) *model.Favorite

func (*FavoriteService) Query

func (this *FavoriteService) Query(queries *simple.ParamQueries) (list []model.Favorite, paging *simple.Paging)

func (*FavoriteService) QueryCnd

func (this *FavoriteService) QueryCnd(cnd *simple.QueryCnd) (list []model.Favorite, err error)

func (*FavoriteService) Take

func (this *FavoriteService) Take(where ...interface{}) *model.Favorite

func (*FavoriteService) Update

func (this *FavoriteService) Update(t *model.Favorite) error

func (*FavoriteService) UpdateColumn

func (this *FavoriteService) UpdateColumn(id int64, name string, value interface{}) error

func (*FavoriteService) Updates

func (this *FavoriteService) Updates(id int64, columns map[string]interface{}) error

type GithubUserService

type GithubUserService struct {
	GithubUserRepository *repositories.GithubUserRepository
}

func NewGithubUserService

func NewGithubUserService() *GithubUserService

func (*GithubUserService) Create

func (this *GithubUserService) Create(t *model.GithubUser) error

func (*GithubUserService) Delete

func (this *GithubUserService) Delete(id int64)

func (*GithubUserService) Get

func (this *GithubUserService) Get(id int64) *model.GithubUser

func (*GithubUserService) GetByGithubId

func (this *GithubUserService) GetByGithubId(githubId int64) *model.GithubUser

func (*GithubUserService) Query

func (this *GithubUserService) Query(queries *simple.ParamQueries) (list []model.GithubUser, paging *simple.Paging)

func (*GithubUserService) QueryCnd

func (this *GithubUserService) QueryCnd(cnd *simple.QueryCnd) (list []model.GithubUser, err error)

func (*GithubUserService) Take

func (this *GithubUserService) Take(where ...interface{}) *model.GithubUser

func (*GithubUserService) Update

func (this *GithubUserService) Update(t *model.GithubUser) error

func (*GithubUserService) UpdateColumn

func (this *GithubUserService) UpdateColumn(id int64, name string, value interface{}) error

func (*GithubUserService) Updates

func (this *GithubUserService) Updates(id int64, columns map[string]interface{}) error

type MessageService

type MessageService struct {
	MessageRepository *repositories.MessageRepository
	UserRepository    *repositories.UserRepository
	CommentRepository *repositories.CommentRepository
	ArticleRepository *repositories.ArticleRepository
	TopicRepository   *repositories.TopicRepository
}

func NewMessageService

func NewMessageService() *MessageService

func (*MessageService) Create

func (this *MessageService) Create(t *model.Message) error

func (*MessageService) Delete

func (this *MessageService) Delete(id int64)

func (*MessageService) Get

func (this *MessageService) Get(id int64) *model.Message

func (*MessageService) GetUnReadCount

func (this *MessageService) GetUnReadCount(userId int64) (count int64)

func (*MessageService) MarkReadAll

func (this *MessageService) MarkReadAll(userId int64)

将所有消息标记为已读

func (*MessageService) Query

func (this *MessageService) Query(queries *simple.ParamQueries) (list []model.Message, paging *simple.Paging)

func (*MessageService) QueryCnd

func (this *MessageService) QueryCnd(cnd *simple.QueryCnd) (list []model.Message, err error)

func (*MessageService) Read

func (this *MessageService) Read(id int64) *model.Message

读消息

func (*MessageService) Send

func (this *MessageService) Send(userId int64, content, quoteContent string, msgType int, extraData map[string]interface{})

func (*MessageService) SendCommentMsg

func (this *MessageService) SendCommentMsg(comment *model.Comment)

func (*MessageService) Take

func (this *MessageService) Take(where ...interface{}) *model.Message

func (*MessageService) Update

func (this *MessageService) Update(t *model.Message) error

func (*MessageService) UpdateColumn

func (this *MessageService) UpdateColumn(id int64, name string, value interface{}) error

func (*MessageService) Updates

func (this *MessageService) Updates(id int64, columns map[string]interface{}) error

type OauthClientService

type OauthClientService struct {
	OauthClientRepository *repositories.OauthClientRepository
}

func NewOauthClientService

func NewOauthClientService() *OauthClientService

func (*OauthClientService) Create

func (this *OauthClientService) Create(t *model.OauthClient) error

func (*OauthClientService) Delete

func (this *OauthClientService) Delete(id int64)

func (*OauthClientService) Get

func (this *OauthClientService) Get(id int64) *model.OauthClient

func (*OauthClientService) GetByClientId

func (this *OauthClientService) GetByClientId(clientId string) *model.OauthClient

func (*OauthClientService) Query

func (this *OauthClientService) Query(queries *simple.ParamQueries) (list []model.OauthClient, paging *simple.Paging)

func (*OauthClientService) QueryCnd

func (this *OauthClientService) QueryCnd(cnd *simple.QueryCnd) (list []model.OauthClient, err error)

func (*OauthClientService) Take

func (this *OauthClientService) Take(where ...interface{}) *model.OauthClient

func (*OauthClientService) Update

func (this *OauthClientService) Update(t *model.OauthClient) error

func (*OauthClientService) UpdateColumn

func (this *OauthClientService) UpdateColumn(id int64, name string, value interface{}) error

func (*OauthClientService) Updates

func (this *OauthClientService) Updates(id int64, columns map[string]interface{}) error

type OauthTokenService

type OauthTokenService struct {
	OauthTokenRepository *repositories.OauthTokenRepository
}

func NewOauthTokenService

func NewOauthTokenService() *OauthTokenService

func (*OauthTokenService) Create

func (this *OauthTokenService) Create(t *model.OauthToken) error

func (*OauthTokenService) Delete

func (this *OauthTokenService) Delete(id int64)

func (*OauthTokenService) Get

func (this *OauthTokenService) Get(id int64) *model.OauthToken

func (*OauthTokenService) Query

func (this *OauthTokenService) Query(queries *simple.ParamQueries) (list []model.OauthToken, paging *simple.Paging)

func (*OauthTokenService) QueryCnd

func (this *OauthTokenService) QueryCnd(cnd *simple.QueryCnd) (list []model.OauthToken, err error)

func (*OauthTokenService) Take

func (this *OauthTokenService) Take(where ...interface{}) *model.OauthToken

func (*OauthTokenService) Update

func (this *OauthTokenService) Update(t *model.OauthToken) error

func (*OauthTokenService) UpdateColumn

func (this *OauthTokenService) UpdateColumn(id int64, name string, value interface{}) error

func (*OauthTokenService) Updates

func (this *OauthTokenService) Updates(id int64, columns map[string]interface{}) error

type ScanArticleCallback

type ScanArticleCallback func(articles []model.Article) bool

type ScanArticleShareCallback

type ScanArticleShareCallback func(shares []model.ArticleShare)

type ScanTopicCallback

type ScanTopicCallback func(topics []model.Topic)

type TagService

type TagService struct {
	TagRepository      *repositories.TagRepository
	CategoryRepository *repositories.CategoryRepository
}

func NewTagService

func NewTagService() *TagService

func (*TagService) Create

func (this *TagService) Create(t *model.Tag) error

func (*TagService) Delete

func (this *TagService) Delete(id int64)

func (*TagService) Get

func (this *TagService) Get(id int64) *model.Tag

func (*TagService) GetByName

func (this *TagService) GetByName(name string) *model.Tag

func (*TagService) GetOrCreate

func (this *TagService) GetOrCreate(name string) (*model.Tag, error)

func (*TagService) GetTagInIds

func (this *TagService) GetTagInIds(tagIds []int64) []model.Tag

func (*TagService) GetTags

func (this *TagService) GetTags() []model.TagResponse

func (*TagService) ListAll

func (this *TagService) ListAll(categoryId int64) ([]model.Tag, error)

func (*TagService) Query

func (this *TagService) Query(queries *simple.ParamQueries) (list []model.Tag, paging *simple.Paging)

func (*TagService) QueryCnd

func (this *TagService) QueryCnd(cnd *simple.QueryCnd) (list []model.Tag, err error)

func (*TagService) Take

func (this *TagService) Take(where ...interface{}) *model.Tag

func (*TagService) Update

func (this *TagService) Update(t *model.Tag) error

func (*TagService) UpdateColumn

func (this *TagService) UpdateColumn(id int64, name string, value interface{}) error

func (*TagService) Updates

func (this *TagService) Updates(id int64, columns map[string]interface{}) error

type TopicService

type TopicService struct {
	TopicRepository    *repositories.TopicRepository
	TagRepository      *repositories.TagRepository
	TopicTagRepository *repositories.TopicTagRepository
}

func NewTopicService

func NewTopicService() *TopicService

func (*TopicService) Create

func (this *TopicService) Create(t *model.Topic) error

func (*TopicService) Delete

func (this *TopicService) Delete(id int64)

func (*TopicService) Get

func (this *TopicService) Get(id int64) *model.Topic

func (*TopicService) GetTopicTags

func (this *TopicService) GetTopicTags(topicId int64) []model.Tag

帖子标签

func (*TopicService) IncrViewCount

func (this *TopicService) IncrViewCount(topicId int64)

浏览数+1

func (*TopicService) Publish

func (this *TopicService) Publish(userId int64, tags []string, title, content string) (*model.Topic, *simple.CodeError)

发表

func (*TopicService) Query

func (this *TopicService) Query(queries *simple.ParamQueries) (list []model.Topic, paging *simple.Paging)

func (*TopicService) QueryCnd

func (this *TopicService) QueryCnd(cnd *simple.QueryCnd) (list []model.Topic, err error)

func (*TopicService) Scan

func (this *TopicService) Scan(cb ScanTopicCallback)

扫描

func (*TopicService) SetLastCommentTime

func (this *TopicService) SetLastCommentTime(topicId, lastCommentTime int64)

更新最后回复时间

func (*TopicService) Take

func (this *TopicService) Take(where ...interface{}) *model.Topic

func (*TopicService) Update

func (this *TopicService) Update(t *model.Topic) error

func (*TopicService) UpdateColumn

func (this *TopicService) UpdateColumn(id int64, name string, value interface{}) error

func (*TopicService) Updates

func (this *TopicService) Updates(id int64, columns map[string]interface{}) error

type TopicTagService

type TopicTagService struct {
	TopicTagRepository *repositories.TopicTagRepository
}

func NewTopicTagService

func NewTopicTagService() *TopicTagService

func (*TopicTagService) Create

func (this *TopicTagService) Create(t *model.TopicTag) error

func (*TopicTagService) Delete

func (this *TopicTagService) Delete(id int64)

func (*TopicTagService) Get

func (this *TopicTagService) Get(id int64) *model.TopicTag

func (*TopicTagService) Query

func (this *TopicTagService) Query(queries *simple.ParamQueries) (list []model.TopicTag, paging *simple.Paging)

func (*TopicTagService) QueryCnd

func (this *TopicTagService) QueryCnd(cnd *simple.QueryCnd) (list []model.TopicTag, err error)

func (*TopicTagService) Take

func (this *TopicTagService) Take(where ...interface{}) *model.TopicTag

func (*TopicTagService) Update

func (this *TopicTagService) Update(t *model.TopicTag) error

func (*TopicTagService) UpdateColumn

func (this *TopicTagService) UpdateColumn(id int64, name string, value interface{}) error

func (*TopicTagService) Updates

func (this *TopicTagService) Updates(id int64, columns map[string]interface{}) error

type UserArticleTagService

type UserArticleTagService struct {
	UserArticleTagRepository *repositories.UserArticleTagRepository
	TagRepository            *repositories.TagRepository
}

func NewUserArticleTagService

func NewUserArticleTagService() *UserArticleTagService

func (*UserArticleTagService) AddUserTag

func (this *UserArticleTagService) AddUserTag(userId int64, name string) error

func (*UserArticleTagService) Create

func (*UserArticleTagService) Delete

func (this *UserArticleTagService) Delete(id int64)

func (*UserArticleTagService) Get

func (*UserArticleTagService) GetBy

func (this *UserArticleTagService) GetBy(userId, tagId int64) *model.UserArticleTag

func (*UserArticleTagService) GetUserTags

func (this *UserArticleTagService) GetUserTags(userId int64) (tags []model.Tag)

func (*UserArticleTagService) Query

func (this *UserArticleTagService) Query(queries *simple.ParamQueries) (list []model.UserArticleTag, paging *simple.Paging)

func (*UserArticleTagService) QueryCnd

func (this *UserArticleTagService) QueryCnd(cnd *simple.QueryCnd) (list []model.UserArticleTag, err error)

func (*UserArticleTagService) Take

func (this *UserArticleTagService) Take(where ...interface{}) *model.UserArticleTag

func (*UserArticleTagService) Update

func (*UserArticleTagService) UpdateColumn

func (this *UserArticleTagService) UpdateColumn(id int64, name string, value interface{}) error

func (*UserArticleTagService) Updates

func (this *UserArticleTagService) Updates(id int64, columns map[string]interface{}) error

type UserService

type UserService struct {
	UserRepository       *repositories.UserRepository
	GithubUserRepository *repositories.GithubUserRepository
}

func NewUserService

func NewUserService() *UserService

func (*UserService) Bind

func (this *UserService) Bind(githubId int64, bindType, username, email, password, rePassword, nickname string) (user *model.User, err error)

func (*UserService) Create

func (this *UserService) Create(t *model.User) error

func (*UserService) Delete

func (this *UserService) Delete(id int64)

func (*UserService) Get

func (this *UserService) Get(id int64) *model.User

func (*UserService) GetByEmail

func (this *UserService) GetByEmail(email string) *model.User

func (*UserService) GetByUsername

func (this *UserService) GetByUsername(username string) *model.User

func (*UserService) Query

func (this *UserService) Query(queries *simple.ParamQueries) (list []model.User, paging *simple.Paging)

func (*UserService) QueryCnd

func (this *UserService) QueryCnd(cnd *simple.QueryCnd) (list []model.User, err error)

func (*UserService) SignIn

func (this *UserService) SignIn(username, password string) (*model.User, error)

func (*UserService) SignUp

func (this *UserService) SignUp(username, email, password, rePassword, nickname, avatar string) (*model.User, error)

func (*UserService) Take

func (this *UserService) Take(where ...interface{}) *model.User

func (*UserService) Update

func (this *UserService) Update(t *model.User) error

func (*UserService) UpdateColumn

func (this *UserService) UpdateColumn(id int64, name string, value interface{}) error

func (*UserService) Updates

func (this *UserService) Updates(id int64, columns map[string]interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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