package
0.0.0-20221028095223-bef4ad1ff22c
Repository: https://github.com/monkey-mouse/mo2.git
Documentation: pkg.go.dev
# Functions
ChooseCol 选择数据集合 根据collection名称选取相应名称的集合.
No description provided by the author
No description provided by the author
create an anonymous account.
No description provided by the author
No description provided by the author
DeleteBlogs 彻底删除.
DeleteByRecycleItemID 根据itemID删除Item.
DeleteByRecycleItemInfo 根据itemInfo id&handler 删除Item.
DeleteCategory.
DeleteCategoryCompletely 删除category,并删除blog中的冗余数据.
DeleteExpireItems 删除已到规定删除时间的Items.
DeleteGroupByID delete group by id.
DeleteGroupByOwnerID delete groups by owner id.
No description provided by the author
DeleteRecycleItems 根据id删除Items.
EnsureEmailUnique return true if unique, else return false if not unique, check whether the user exists if active, already exists, return false if not active, delete document, return ture if unique, return true.
FindAccount find.
FindAccountByEmail get account by email.
FindAccountByName as name.
FindAccountInfo find.
FindAllAccounts find.
FindAllAccountsInfo find.
FindAllCategories find all categories.
find blog by id.
FindBlogs find blog.
FindBlogsByCategoryId 寻找包括categoryId的所有blogs的信息.
find blog by user.
find blog by value.
FindCategories 寻找位于ids列表中所有categories的详细信息.
FindCategoriesByUserId find categories by user id.
FindCategoryById find category by id.
FindDirectoryInfo 根据collection选取集合,并在其中寻找在id在ids列表中的所有directory类型的信息 现在返回的数据有id,info与name.
FindGroup find group.
FindOrCreateRoot4User 寻找用户的根目录,若不存在,新建并返回.
FindSubCategories 寻找一个category id的所有子category的详细信息.
GenerateEmailToken generate token for email of an account.
No description provided by the author
No description provided by the author
Ge3tCommentNum 获取该文章下的一级评论数量.
GetComments get comments.
No description provided by the author
No description provided by the author
already check the validation in controllerif add a newAccount success, return account info.
ListAccountsBrief find from a list of id.
ListAllAccountsBrief find from a list of id.
No description provided by the author
ProcessBlog process blog or draft 根据operation对blog/draft的信息进行更新 recycle:新增关于本blog/draft的recycleBin信息,且isDeleted字段置为true状态 restore:将recycleBin中关于本blog/draft的信息进行删除,且isDeleted字段恢复为false状态.
RelateCategory2Blog 在blog及draft的categories中添加categories的id.
RelateCategories2Blogs 在blogs及drafts的categories中添加categories的id Todo find nice way to make of use.
RelateCategories2User 在列表category的ownerIds中添加userIDs.
RelateCategory2Blog 在blog及draft的categories中添加category的id.
RelateCategory2User 在category的ownerIds中添加userIDs.
RelateMainCategory2User 为用户创建主归档目录.
RelateSubCategories2Category 将子归档subCategories的parent_id设为category.
RelateSubCategory2Category 将子归档subCategory的parent_id设为category.
RemoveCategoriesInAllBlogs 删除所有blog中的category存在id.
RightFilter 根据用户id,返回请求的ids中有权限进行某种操作的过滤id列表.
No description provided by the author
SortCategories 递归建立categories的树形结构.
No description provided by the author
UpsertAccount.
No description provided by the author
UpsertBlog upsert blog or draft.
UpsertCategory 更新、插入category.
UpsertComment 插入或更新评论.
UpsertDirectoryByUser 用户id为userID的用户更新、插入category 若插入的ownerIDs不存在,则将请求方加入 若存在,则检查请求方id是否存在访问权限,若无则直接返回 若插入的parentID不存在,则检查请求用户是否有root 若有root,则使用root的id做为parentID插入 若无root,则创建并使用新建的root的id做为parentID插入.
UpsertGroup upsert group.
UpsertProject 插入或更新project - 如果插入,ManagerIDs和MemberIDs会被设置为空数组.
UpsertRecycleItem 新增或更新recycleBin中的item.
UpsertSubComment as name.
verify an account.
verify email of an account.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author