Giter VIP home page Giter VIP logo

forum's Introduction

这是个开始,更多文档逐步完善。

介绍

论坛核心采用CQRS框架JSDM开发,应用层采用MVC Express框架,UI前端采用Angular。

论坛设计分三层,领域核心层包含了所有功能,然后是应用层和UI层,核心层没有任何权限限制,所以需要应用层加以控制, 权限控制是指,用户的登录与否等。

通过 domain.exec 和 domain.call 函数可以调用核心层功能。

domain.exec 核心层命令

调用 domain.exec 函数可以操作核心层,以下是命令列表。

create a topic 创建一个主题

domain.exec("create a topic",参数,回调函数)

remove a topic

删除一个主题贴

create a reply

创建一个回复贴

create a user

创建一个用户

remove a reply

删除一个回复

create a column

创建一个栏目

send message

发送一条私信

top topic

置顶一个主题帖

down topic

下架一个置顶的主题帖

remove a user

删除一个用户

isCustomLogo

设置是否是自定义头像

domain.call 核心层命令

调用 domain.call 函数可以操作核心层,以下是命令列表。

User.plus

domain.call("User.plus",用户ID,[分数],[回调函数]) 为用户加积分。

User.updatePassword

更改用户密码

User.follow

关注用户

User.unfollow

取消关注用户

User.becomeAdmin

设置用户为终极管理员

User.becomeModerator

设置用户为版主

User.becomeUser

设置用户为普通用户,默认。

User.sealUser

屏蔽用户,通过调用 User.becomeUser 命令可以解除屏蔽。

User.updateInfo

更改用户 性别 、个人描述 、 地址 信息。

待续 ...

LICENSE

GPLv3

forum's People

Contributors

brighthas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.