modify README.md

This commit is contained in:
yubaolee
2015-07-24 15:57:16 +08:00
parent dabb691243
commit 1289a5c133
3 changed files with 10 additions and 45 deletions

View File

@@ -68,43 +68,4 @@
}
);
}
$scope.showNewPostDialog = function () {
$scope.errorMsg = '';
$scope.newPost = {
title: '',
content: '',
tag: ''
};
$("#float-box-newPost").modal("show");
}
$scope.submitPost = function () {
if (isStringEmpty($scope.newPost.title)) {
$scope.errorMsg = '请输入标题。';
return false;
}
if (isStringEmpty($scope.newPost.content)) {
$scope.errorMsg = '请输入内容。';
return false;
}
$http({
method: 'POST',
url: '/Question/Create',
data: $scope.newPost
})
.success(function (result, status, headers, config) {
if (result.success) {
showAutoCloseAlert();
$("#float-box-newPost").modal("hide");
} else {
$scope.errorMsg = result.errorMsg;
}
})
.error(function (result, status, headers, config) {
$scope.errorMsg = result.errorMsg;
});
}
}]);

View File

@@ -29,7 +29,7 @@
post.editing = false;
}
$scope.saveChanges = function(post) {
blockUi.start('Updating...');
blockUi.start('Saving...');
if (post.Id == '')
$scope.create(post);

View File

@@ -7,13 +7,15 @@
![输入图片说明](http://git.oschina.net/uploads/images/2015/0722/092159_24a70ed6_362401.jpeg "在这里输入图片标题")
![输入图片说明](http://git.oschina.net/uploads/images/2015/0722/092213_ab6df88b_362401.jpeg "在这里输入图片标题")
![输入图片说明](http://git.oschina.net/uploads/images/2015/0722/092232_793127b9_362401.jpeg "在这里输入图片标题")
####系统工程结构:
- Server
######Server
1. BestQA.MessageQueue: 系统消息队列中心
2. BestQA.CommandSubscribe: 为系统命令的订阅处理程序
3. BestQA.EventSubscribe: 为领域事件订阅处理程序
- Other
######Other
1. BestQA.Commands: 包含所有的命令即CQRS框架中的Command及命令处理CommandHandler
2. BestQA.Domain: 核心领域层(内部包括领域事件的定义)
3. BestQA.EventHandler: 领域事件处理
@@ -28,18 +30,20 @@
####启动顺序:
- 创建数据库BestQA并使用InitTables.sql进行初始化
- 依次运行:
######依次运行:
1. BestQA.MessageQueue.exe
2. BestQA.CommandSubscribe.exe
3. BestQA.EventSubscribe.exe
4. BestQA.Web(注意修改连接字符串)
- 单元测试:
1.行BestQA.UnitTest即可无需任何其它程序
######单元测试:
1.运行行BestQA.UnitTest即可无需任何其它程序
####典型的业务处理流程:
发布一个新问题:
- 用户通过WEB发送CreateNewQuestionCmd
- BestQA.MessageQueue收到命令
- BestQA.CommandSubscribe收到通知调用BestQA.Commands中的CommandHandler处理最终通过调用BestQA.Domain处理然后发送QuestionCreatedEvent