4 |
5 |
6 |
7 |
8 | admin-ui
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Gogogo.IF/IWorkUnitManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Abstract
8 | {
9 | public interface IWorkUnitManager
10 | {
11 | ulong Add(IWorkUnit unit);
12 | bool Update(IWorkUnit unit);
13 | bool Delete(ulong id);
14 | IAgileProject Get(ulong id);
15 | DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize, int pageNo, string fields);
16 | List LoadChilds(ulong projectID);
17 | List LoadChilds(ulong projectID,ulong parentUnitID);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Threading.Tasks;
6 | using Microsoft.AspNetCore;
7 | using Microsoft.AspNetCore.Hosting;
8 | using Microsoft.Extensions.Configuration;
9 | using Microsoft.Extensions.Logging;
10 |
11 | namespace GoGoGo.WebApp
12 | {
13 | public class Program
14 | {
15 | public static void Main(string[] args)
16 | {
17 | CreateWebHostBuilder(args).Build().Run();
18 | }
19 |
20 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
21 | WebHost.CreateDefaultBuilder(args)
22 | .UseStartup();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/GoGoGo.WebApp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.1
5 | InProcess
6 |
7 |
8 |
9 |
10 | all
11 | true
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Gogogo.IF/IWorkTaskManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Abstract
8 | {
9 | public interface IWorkTaskManager
10 | {
11 | ulong Add(IWorkUnit unit);
12 | bool Update(IWorkUnit unit);
13 | bool Delete(ulong id);
14 | bool MoveToUser(ulong id, ulong userID);
15 | IWorkTask Get(ulong id);
16 | DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize, int pageNo, string fields);
17 | List LoadProjectTasks(ulong projectID);
18 | List LoadWorkUnitTasks(ulong projectID, ulong unitID);
19 | List LoadUserTasks(ulong projectID, ulong userID);
20 | List LoadUserTasks(ulong userID);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/GoGoGo.DataStorage.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/router/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 路由配置
3 | */
4 |
5 | export default [
6 | {
7 | path: "/login",
8 | name: "login",
9 | meta: {
10 | hideInMenu: true
11 | },
12 | component: () => import("@/views/login/index.vue")
13 | },
14 |
15 | {
16 | path: "/",
17 | name: "main",
18 | redirect: "/home",
19 | meta: {
20 | hideInMenu: true
21 | },
22 | component: () => import("@/views/layout/index.vue"),
23 | children: [
24 | {
25 | path: "/home",
26 | name: "home",
27 | meta: {
28 | title: "首页"
29 | },
30 | component: () => import("@/views/home/index.vue")
31 | }
32 | ]
33 | }
34 | ];
35 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:32734",
7 | "sslPort": 0
8 | }
9 | },
10 | "$schema": "http://json.schemastore.org/launchsettings.json",
11 | "profiles": {
12 | "IIS Express": {
13 | "commandName": "IISExpress",
14 | "launchBrowser": true,
15 | "launchUrl": "swagger",
16 | "environmentVariables": {
17 | "ASPNETCORE_ENVIRONMENT": "Development"
18 | }
19 | },
20 | "GoGoGo.WebApp": {
21 | "commandName": "Project",
22 | "launchBrowser": true,
23 | "launchUrl": "api/values",
24 | "environmentVariables": {
25 | "ASPNETCORE_ENVIRONMENT": "Development"
26 | },
27 | "applicationUrl": "http://localhost:5000"
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/Gogogo.IF/IProductManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using GoGoGo.Abstract.Entity;
5 |
6 | namespace GoGoGo.Abstract
7 | {
8 | public interface IProductManager
9 | {
10 |
11 | ulong AddProduct(IProduct product);
12 | ulong AddModule(IProductModule module);
13 | ulong AddFeature(IProductFeature feature);
14 |
15 | bool Update(IProduct product);
16 | bool UpdateModule(IProductModule module);
17 | bool UpdateFeature(IProductFeature feature);
18 |
19 | bool DeleteProduct(ulong id);
20 | bool DeleteModule(ulong id);
21 | bool DeleteFeature(ulong id);
22 |
23 | IProduct Get(ulong id);
24 |
25 | List FindByName(string name);
26 | List FindByName(string name,int productType);
27 | List FindByType(int productType);
28 |
29 | DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize, int pageNo, string fields);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/libs/index.js:
--------------------------------------------------------------------------------
1 | import Cookie from "js-cookie";
2 |
3 | /**
4 | * TODO
5 | */
6 | export const resolveMenuFromRoutes = routes => {
7 | function getMenus(route, result) {
8 | var menu = {
9 | name: route.name,
10 | title: route.meta && route.meta.title,
11 | children: []
12 | };
13 |
14 | if (route.children) {
15 | route.children
16 | .filter(item => item.meta && !item.meta["hideInMenu"])
17 | .forEach(item => {
18 | getMenus(item, menu.children);
19 | });
20 | }
21 |
22 | result.push(menu);
23 | }
24 |
25 | var result = [];
26 | routes
27 | .filter(item => item.meta && !item.meta["hideInMenu"])
28 | .forEach(item => {
29 | getMenus(item, result);
30 | });
31 |
32 | return result;
33 | };
34 |
35 | export const getToken = () => {
36 | return Cookie.get(".token") || "";
37 | };
38 |
39 | export const setToken = token => {
40 | Cookie.set(".token", token);
41 | };
42 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/Controllers/ValuesController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using Microsoft.AspNetCore.Mvc;
6 |
7 | namespace GoGoGo.WebApp.Controllers
8 | {
9 | [Route("api/[controller]")]
10 | [ApiController]
11 | public class ValuesController : ControllerBase
12 | {
13 | // GET api/values
14 | [HttpGet]
15 | public ActionResult> Get()
16 | {
17 | return new string[] { "value1", "value2" };
18 | }
19 |
20 | // GET api/values/5
21 | [HttpGet("{id}")]
22 | public ActionResult Get(int id)
23 | {
24 | return "value";
25 | }
26 |
27 | // POST api/values
28 | [HttpPost]
29 | public void Post([FromBody] string value)
30 | {
31 | }
32 |
33 | // PUT api/values/5
34 | [HttpPut("{id}")]
35 | public void Put(int id, [FromBody] string value)
36 | {
37 | }
38 |
39 | // DELETE api/values/5
40 | [HttpDelete("{id}")]
41 | public void Delete(int id)
42 | {
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/router/index.js:
--------------------------------------------------------------------------------
1 | import Vue from "vue";
2 | import Router from "vue-router";
3 | import routes from "./config";
4 | import store from "../store";
5 |
6 | import { getToken, setToken } from "@/libs/";
7 | import { getUserInfo } from "@/api/login";
8 |
9 | Vue.use(Router);
10 |
11 | const router = new Router({
12 | // mode: "history",
13 | routes: routes
14 | });
15 |
16 | router.beforeEach((to, from, next) => {
17 | next();
18 |
19 | // var token = getToken();
20 | // if (!token && to.name !== "login") {
21 | // next({ name: "login" });
22 | // } else if (!token && to.name === "login") {
23 | // next();
24 | // } else if (token && to.name === "login") {
25 | // next({ name: "home" });
26 | // } else {
27 | // if (store.state.hasUserInfo) next();
28 | // else {
29 | // getUserInfo()
30 | // .then(result => {
31 | // next();
32 | // })
33 | // .catch(err => {
34 | // setToken("");
35 | // next({ name: "login" });
36 | // });
37 | // }
38 | // }
39 | });
40 |
41 | export default router;
42 |
--------------------------------------------------------------------------------
/Gogogo.IF/IAgileProjectManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Abstract
8 | {
9 | public interface IAgileProjectManager
10 | {
11 | ulong Add(IAgileProject project);
12 | bool Update(IAgileProject project);
13 | bool Delete(ulong id);
14 | IAgileProject Get(ulong id);
15 | DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize, int pageNo, string fields);
16 | ulong AddWorkUnit(ulong projectID, ulong? parentUnitID);
17 | bool RemoveWorkUnit(ulong projectID, ulong unitID);
18 | bool MoveWorkUnit(ulong projectID, ulong fromUnitID,ulong toUnitID);
19 | List FindByCreator(ulong creatorID);
20 | List FindByChifeManager(ulong chifeManagerID);
21 | List FindByExecutor(ulong executorID);
22 | double GetProgress(ulong projectID);
23 | int CountTask(ulong projectID);
24 | int CountTask(ulong projectID, ulong workUnitID);
25 | List GetMembers(ulong projectID);
26 | List GetMembers(ulong projectID, ulong workUnitID);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/UnitTest/GoGoGo.DataStorage.UnitTest/GoGoGo.DataStorage.UnitTest.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.1
5 |
6 | false
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Gogogo.IF/UserRights.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract
6 | {
7 | public enum UserRights : int
8 | {
9 | SystemEdit = 100,//CRUD
10 | SystemBrowse =101,//LIST,READ
11 |
12 | ProjectEdit = 200,//CRUD
13 | ProjectBrowse = 201,//LIST,READ
14 | ProjectApproval = 202,//DENY,ACCESS
15 |
16 | WorkUnitEdit = 300,//CRUD
17 | WorkUnitBrowse = 301,//LIST,READ
18 | WorkUnitApproval =302,//DENY,ACCESS
19 |
20 | ProductEdit = 400,//CRUD
21 | ProductBrowse = 401,//LIST,READ
22 | ProdcutApproval = 402,//DENY,ACCESS
23 |
24 | TaskEdit = 500,//CRUD
25 | TaskBrowse = 501,//LIST,READ
26 | TaskApproval = 502,//DENY,ACCESS
27 |
28 | IssuesEdit = 600,//CRUD
29 | IssuesBrowse = 601,//LIST,READ
30 | IssuesApproval = 602,//DENY,ACCESS
31 |
32 | TestEdit = 700,//CRUD
33 | TestBrowse = 701,//LIST,READ
34 | TestApproval = 702,//DENY,ACCESS
35 |
36 | UserEdit = 800,//CRUD
37 | UserBrowse = 801,//LIST,READ
38 | UserApproval = 802,//DENY,ACCESS
39 |
40 | SupperRights = 10000 //ROOT
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "admin-ui",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build",
8 | "lint": "vue-cli-service lint"
9 | },
10 | "dependencies": {
11 | "@aspnet/signalr": "^1.1.4",
12 | "axios": "0.19.0",
13 | "core-js": "^2.6.5",
14 | "countup": "1.8.2",
15 | "element-ui": "^2.11.1",
16 | "js-cookie": "2.2.0",
17 | "moment": "2.24.0",
18 | "qs": "6.7.0",
19 | "vue": "^2.6.10",
20 | "vue-router": "^3.0.7",
21 | "vuex": "^3.1.1",
22 | "echarts": "^4.2.1"
23 | },
24 | "devDependencies": {
25 | "@vue/cli-plugin-babel": "^3.10.0",
26 | "@vue/cli-plugin-eslint": "^3.10.0",
27 | "@vue/cli-service": "^3.10.0",
28 | "@vue/eslint-config-prettier": "^5.0.0",
29 | "babel-eslint": "^10.0.1",
30 | "eslint": "^5.16.0",
31 | "eslint-plugin-prettier": "^3.1.0",
32 | "eslint-plugin-vue": "^5.0.0",
33 | "prettier": "^1.18.2",
34 | "vue-template-compiler": "^2.6.10",
35 | "less": "^3.9.0",
36 | "less-loader": "^5.0.0"
37 | }
38 | }
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/libs/http.js:
--------------------------------------------------------------------------------
1 | import Axios from "axios";
2 | import qs from "qs";
3 | import { getToken } from "./index";
4 |
5 | // Axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8";
6 | //axios.defaults.headers["Authorization"] = getAccessToken();
7 | Axios.defaults.timeout = 30000; // 30s
8 | Axios.defaults.withCredentials = true;
9 |
10 | /**
11 | *
12 | */
13 | class HttpClient {
14 | constructor() {}
15 |
16 | config() {
17 | return {
18 | baseURL: "/",
19 | headers: {
20 | //
21 | Authorization: "Bearer " + getToken()
22 | }
23 | };
24 | }
25 |
26 | interceptors(instance, options) {}
27 |
28 | create(options) {
29 | var instance = Axios.create();
30 | options = Object.assign(this.config(), options);
31 |
32 | this.interceptors(instance, options);
33 | return instance(options);
34 | }
35 | }
36 |
37 | const http = new HttpClient();
38 |
39 | const get = (url, params) => {
40 | return http.create({
41 | url: url,
42 | params
43 | });
44 | };
45 |
46 | const post = (url, data) => {
47 | return http.create({
48 | method: "post",
49 | url: url,
50 | data: data
51 | });
52 | };
53 |
54 | export default {
55 | get,
56 | post
57 | };
58 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/api/login.js:
--------------------------------------------------------------------------------
1 | import http from "../libs/http";
2 | import store from "../store";
3 |
4 | export const loginSubmit = payload => {
5 | return new Promise(function(resolve, reject) {
6 | http.post("api/auth/token", payload)
7 | .then(result => {
8 | if (result.data) {
9 | // console.log(result.data);
10 | store.dispatch("saveAccessToken", { token: result.data.token });
11 | store.dispatch("updateUserInfo", { data: result.data });
12 | resolve();
13 | } else {
14 | reject();
15 | }
16 | })
17 | .catch(err => {
18 | console.log(err);
19 | reject();
20 | });
21 | });
22 | };
23 |
24 | export const getUserInfo = () => {
25 | return new Promise(function(resolve, reject) {
26 | http.get("api/auth/identity")
27 | .then(result => {
28 | if (result.data) {
29 | store.dispatch("updateUserInfo", { data: result.data });
30 | resolve(result.data);
31 | } else {
32 | reject();
33 | }
34 | })
35 | .catch(err => {
36 | console.log(err);
37 | reject();
38 | });
39 | });
40 | };
41 |
--------------------------------------------------------------------------------
/Sql/get_data_pager.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------
2 | -- Procedure structure for get_data_pager
3 | -- ----------------------------
4 | DROP PROCEDURE IF EXISTS `get_data_pager`;
5 | DELIMITER ;;
6 | CREATE DEFINER=`app_user`@`%` PROCEDURE `get_data_pager`(
7 | IN p_table_name VARCHAR(6000),
8 | IN p_fields VARCHAR(6000),
9 | IN p_page_size INT,
10 | IN p_page_now INT,
11 | IN p_order_string VARCHAR(512),
12 | IN p_where_string VARCHAR(3000)
13 | )
14 | SQL SECURITY INVOKER
15 | COMMENT '分页存储过程'
16 | BEGIN
17 |
18 |
19 | DECLARE m_begin_row INT DEFAULT 0;
20 | DECLARE m_limit_string CHAR(64);
21 |
22 |
23 | SET m_begin_row = (p_page_now - 1) * p_page_size;
24 | SET m_limit_string = CONCAT(' LIMIT ', m_begin_row, ', ', p_page_size);
25 |
26 | SET @COUNT_STRING = CONCAT('SELECT COUNT(*) FROM ', p_table_name, ' ', p_where_string);
27 | SET @MAIN_STRING = CONCAT('SELECT ', p_fields, ' FROM ', p_table_name, ' ', p_where_string, ' ', p_order_string, m_limit_string);
28 |
29 |
30 | PREPARE count_stmt FROM @COUNT_STRING;
31 | EXECUTE count_stmt;
32 | DEALLOCATE PREPARE count_stmt;
33 |
34 | PREPARE main_stmt FROM @MAIN_STRING;
35 | EXECUTE main_stmt;
36 | DEALLOCATE PREPARE main_stmt;
37 |
38 | END
39 | ;;
40 | DELIMITER ;
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/views/layout/menu.vue:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 |
14 |
15 | {{item.title}}
16 |
17 |
18 | {{item2.title}}
19 |
20 |
21 |
22 |
23 |
24 |
25 | {{item.title}}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
56 |
57 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/assets/images/login-bg.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IUserGroup.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | public interface IUserGroup
28 | {
29 | string group_name { get; set; }
30 | string users { get; set; }//id1,id2,id3,...
31 | ulong creator_id { get; set; }
32 | DateTime created { get; set; }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IRoadMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IRoadMap
27 | {
28 | ulong id { get; set; }
29 | ulong project_id { get; set; }
30 | DateTime deadline { get; set; }
31 | string title { get; set; }
32 | string remark { get; set; }
33 | int state { get; set; }
34 | DateTime? finish_date { get; set; }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IProductVersion.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IProductVersion
27 | {
28 | ulong id { get; set; }
29 | string version_code { get; set; }
30 | ulong product_id { get; set; }
31 | ulong creator_id { get; set; }
32 | string remark { get; set; }
33 | int level { get; set; }
34 | int state { get; set; }
35 | DateTime created { get; set; }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/IssuesRepo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text;
3 | using System.Linq;
4 | using System.Data;
5 | using MySql.Data.MySqlClient;
6 | using Dapper;
7 | using Dapper.Contrib;
8 | using Dapper.Contrib.Extensions;
9 | using GoGoGo.Abstract.Entity;
10 |
11 | namespace GoGoGo.DataStorage
12 | {
13 | /*
14 | Copyright (C) 2019 Jiang Ming Feng
15 | Github: https://github.com/mfjiang
16 | Contact: hamlet.jiang@live.com
17 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
18 |
19 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
20 |
21 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
22 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
23 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
26 |
27 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
28 |
29 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
30 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 | */
32 |
33 | public class IssuesRepo:DataRepoBase
34 | {
35 | public IssuesRepo(string connStr):base(connStr)
36 | {
37 |
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/assets/css/app.css:
--------------------------------------------------------------------------------
1 | .clearfix:before,
2 | .clearfix:after {
3 | content: "\0020";
4 | display: block;
5 | height: 0;
6 | visibility: hidden;
7 | }
8 | .clearfix {
9 | zoom: 1;
10 | }
11 | .clearfix:after {
12 | clear: both;
13 | }
14 | * html .clearfix {
15 | zoom: 1;
16 | }
17 | *:first-child + html .clearfix {
18 | zoom: 1;
19 | }
20 | .hidden {
21 | border: 0 !important;
22 | clip: rect(1px 1px 1px 1px);
23 | clip: rect(1px, 1px, 1px, 1px);
24 | height: 1px !important;
25 | margin: -1px;
26 | overflow: hidden;
27 | padding: 0 !important;
28 | position: absolute !important;
29 | width: 1px;
30 | }
31 | .display-block {
32 | display: block;
33 | }
34 | .display-none,
35 | .display-hide {
36 | display: none;
37 | }
38 | .inline {
39 | display: inline;
40 | }
41 | .text-right {
42 | text-align: right !important;
43 | }
44 | .text-left {
45 | text-align: left !important;
46 | }
47 | .text-center {
48 | text-align: center !important;
49 | }
50 | .pull-left {
51 | float: left !important;
52 | }
53 | .pull-right {
54 | float: right !important;
55 | }
56 | /****/
57 | pre {
58 | font-size: 12px;
59 | padding: 16px;
60 | background-color: #004578;
61 | color: #fff;
62 | text-overflow: clip;
63 | word-break: break-all;
64 | word-wrap: break-word;
65 | border: 1px solid #d3d3d3;
66 | border-radius: 3px;
67 | white-space: pre-wrap;
68 | font-size: 14px;
69 | display: block;
70 | }
71 | /*****/
72 | .search-bar {
73 | margin-bottom: 15px;
74 | }
75 | .search-bar .searbar-button {
76 | text-align: center;
77 | }
78 | .table-toolbar {
79 | margin-bottom: 10px;
80 | }
81 | .table-toolbar .el-button-group + .el-button-group {
82 | margin-left: 10px;
83 | }
84 | .table-footer {
85 | margin-top: 10px;
86 | }
87 | .btn-block {
88 | width: 100%;
89 | display: block;
90 | }
91 |
--------------------------------------------------------------------------------
/Gogogo.IF/IUserManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Abstract
8 | {
9 | public interface IUserManager
10 | {
11 | #region about user
12 |
13 | ulong AddUser(IUser user);
14 | bool Update(IUser user);
15 | bool DeleteUser(ulong id);
16 | IUser Get(ulong id);
17 |
18 | ///
19 | /// limits in 100
20 | ///
21 | ///
22 | ///
23 | List FindByNickName(string name);
24 | ///
25 | /// limits in 100
26 | ///
27 | ///
28 | ///
29 | List FindByRealName(string name);
30 | ///
31 | /// limits in 100
32 | ///
33 | ///
34 | ///
35 | List FindByMoblie(string mobile);
36 | ///
37 | /// limits in 100
38 | ///
39 | ///
40 | ///
41 | List FindByEmail(string email);
42 |
43 | DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize, int pageNo, string fields);
44 | #endregion
45 |
46 | #region about user group
47 | IUserGroup AddGroup(string groupName, ulong cratorId, params ulong[] userIds);
48 | bool RemoveGroup(string groupName);
49 | void MoveInGroup(string groupName, ulong userId);
50 | void MoveOutGroup(string groupName, ulong userId);
51 | IUserGroup GetGroup(string groupName);
52 | List FindGroups(string groupName);
53 | #endregion
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/UserGroupRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class UserGroupRepo : DataRepoBase
35 | {
36 | public UserGroupRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/ProductRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class ProductRepo : DataRepoBase
35 | {
36 | public ProductRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/UseCaseRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class UseCaseRepo : DataRepoBase
35 | {
36 | public UseCaseRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/DiscussionRepo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Data;
3 | using MySql.Data.MySqlClient;
4 | using System.Linq;
5 | using Dapper;
6 | using Dapper.Contrib;
7 | using Dapper.Contrib.Extensions;
8 | using System.Collections.Generic;
9 | using System.Text;
10 | using System.Data.SqlClient;
11 | using GoGoGo.Abstract.Entity;
12 |
13 | namespace GoGoGo.DataStorage
14 | {
15 | /*
16 | Copyright (C) 2019 Jiang Ming Feng
17 | Github: https://github.com/mfjiang
18 | Contact: hamlet.jiang@live.com
19 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
20 |
21 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
22 |
23 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
24 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
25 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 |
27 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
28 |
29 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
30 |
31 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
32 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 | */
34 |
35 | public class DiscussionRepo : DataRepoBase
36 | {
37 | public DiscussionRepo(string connStr) : base(connStr)
38 | {
39 |
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/TestRecordRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class TestRecordRepo : DataRepoBase
35 | {
36 | public TestRecordRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/ProductFeatureRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class ProductFeatureRepo : DataRepoBase
35 | {
36 | public ProductFeatureRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/ProductModuleRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class ProductModuleRepo : DataRepoBase
35 | {
36 | public ProductModuleRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/ProductVersionRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class ProductVersionRepo : DataRepoBase
35 | {
36 | public ProductVersionRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IProductFeature.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IProductFeature
27 | {
28 | ulong id { get; set; }
29 | ulong product_id { get; set; }
30 | ulong module_id { get; set; }
31 | ulong creator_id { get; set; }
32 | ulong last_editor_id { get; set; }
33 | string title { get; set; }
34 | string remark { get; set; }
35 | int level { get; set; }
36 | int state { get; set; }
37 | DateTime created { get; set; }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/UserGroup.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | [Serializable]
30 | [Table("user_group")]
31 | public class UserGroup:IUserGroup
32 | {
33 | [Key]
34 | public string group_name { get; set; }
35 | public string users { get; set; }//id1,id2,id3,...
36 | public ulong creator_id { get; set; }
37 | public DateTime created { get; set; }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/UnitTest/GoGoGo.DataStorage.UnitTest/StorageTest.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using System;
3 | using System.Text;
4 | using System.Linq;
5 | using MySql.Data;
6 | using MySql.Data.MySqlClient;
7 | using Dapper;
8 | using GoGoGo.Core;
9 | using GoGoGo.Abstract;
10 | using GoGoGo.Abstract.Entity;
11 | using GoGoGo.Entity;
12 |
13 | namespace GoGoGo.DataStorage.UnitTest
14 | {
15 | [TestClass]
16 | public class StoreageTest
17 | {
18 | private string connstr = "server=localhost;database=GoGoGo;user=app_user;password=Today!IsAnNiceDay*666;charset=utf8;";
19 |
20 | [TestMethod]
21 | public void TestUserManager()
22 | {
23 | IUserManager manager = (IUserManager)new UserManager(connstr);
24 | Assert.IsNotNull(manager);
25 |
26 | //IUser user = new User();
27 | //user.created = DateTime.Now;
28 | //user.email = "admin@gmail.com";
29 | //user.employee_no = "1000";
30 | //user.work_groups = "admin";
31 | //user.is_banned = false;
32 | //user.mobile_no = "13600000000";
33 | //user.nick_name = "SystemAdmin";
34 | //user.pwd = "123456";
35 | //user.real_name = "James";
36 | //user.roles = "90";//System Admin
37 | //user.title = "Administrator";
38 |
39 | //ulong id = manager.AddUser(user);
40 | //Assert.IsTrue(id > 0);
41 |
42 | IUser temp = manager.Get(1);
43 | Assert.IsNotNull(temp);
44 |
45 | var ul = manager.FindByRealName(temp.real_name);
46 | Assert.IsTrue(ul.Count > 0);
47 |
48 | var ul2 = manager.FindByNickName(temp.nick_name);
49 | Assert.IsTrue(ul2.Count > 0);
50 |
51 | var ul3 = manager.FindByEmail(temp.email);
52 | Assert.IsTrue(ul3.Count > 0);
53 |
54 | var ul4 = manager.FindByMoblie(temp.mobile_no);
55 | Assert.IsTrue(ul4.Count > 0);
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IProductModule.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | public interface IProductModule
28 | {
29 | ulong id { get; set; }
30 | string module_code { get; set; }
31 | ulong creator_id { get; set; }
32 | ulong last_editor_id { get; set; }
33 | ulong version_id { get; set; }
34 | ulong parent_id { get; set; }
35 | ulong product_id { get; set; }
36 | string title { get; set; }
37 | string remark { get; set; }
38 | int level { get; set; }
39 | int state { get; set; }
40 | DateTime created { get; set; }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IUseCase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IUseCase
27 | {
28 | ulong id { get; set; }
29 | ulong product_id { get; set; }
30 | ulong module_id { get; set; }
31 | ulong creator_id { get; set; }
32 | ulong last_editor_id { get; set; }
33 | string test_path { get; set; }
34 | string remark { get; set; }
35 | string paramas { get; set; }
36 | string expected_results { get; set; }
37 | string tested_results { get; set; }
38 | bool quality_pass { get; set; }
39 | int state { get; set; }
40 | DateTime created { get; set; }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IProduct.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IProduct
27 | {
28 | ulong id { get; set; }
29 | int product_type { get; set; }
30 | string code { get; set; }
31 | string name { get; set; }
32 | string remark { get; set; }
33 | string main_ver { get; set; }
34 | string source_uri { get; set; }
35 | string open_api_uri { get; set; }
36 | ulong creator_id { get; set; }
37 | ulong last_editor_id { get; set; }
38 | int level { get; set; }
39 | int state { get; set; }
40 | DateTime? last_updated { get; set; }
41 | DateTime created { get; set; }
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/DotNetCoreConfiguration/AppSettings.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace DotNetCoreConfiguration
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | ///
28 | /// 对应appsettings.json中的AppSettings节
29 | ///
30 | public class AppSettings
31 | {
32 | public AppSettings() { }
33 |
34 | ///
35 | /// 主数据库名称
36 | ///
37 | public string DBName { get; set; }
38 |
39 | ///
40 | /// 日志路径
41 | ///
42 | public string LogManPath { get; set; }
43 |
44 | ///
45 | /// Redis连接串
46 | ///
47 | public string RedisConn { get; set; }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/RoadMap.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.ComponentModel.DataAnnotations.Schema;
5 | using System.Text;
6 | using GoGoGo.Abstract.Entity;
7 |
8 | namespace GoGoGo.Entity
9 | {
10 | /*
11 | Copyright (C) 2019 Jiang Ming Feng
12 | Github: https://github.com/mfjiang
13 | Contact: hamlet.jiang@live.com
14 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
15 |
16 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
17 |
18 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
19 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
20 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 |
22 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
23 |
24 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
25 |
26 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
27 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 | */
29 |
30 | [Serializable]
31 | [Table("roadmap")]
32 | public class RoadMap : IRoadMap
33 | {
34 | [Key]
35 | public ulong id { get; set; }
36 | public ulong project_id { get; set; }
37 | public DateTime deadline { get; set; }
38 | public string title { get; set; }
39 | public string remark { get; set ; }
40 | public int state { get; set; }
41 | public DateTime? finish_date { get; set; }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/WorkUnitRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class WorkUnitRepo : DataRepoBase
35 | {
36 | public WorkUnitRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 | public DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize = 50, int pageNo = 1, string fields = "*")
41 | {
42 | return base.GetDataPage(sqlQuery, orderBy, "work_unit", pageSize, pageNo, fields);
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/ProductVersion.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | [Serializable]
30 | [Table("product_version")]
31 | public class ProductVersion:IProductVersion
32 | {
33 | [Key]
34 | public ulong id { get; set; }
35 | public string version_code { get; set; }
36 | public ulong product_id { get; set; }
37 | public ulong creator_id { get; set; }
38 | public string remark { get; set; }
39 | public int level { get; set; }
40 | public int state { get; set; }
41 | public DateTime created { get; set; }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/Issues.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 | [Serializable]
29 | [Table("issues")]
30 | public class Issues : IIssues
31 | {
32 | [Key]
33 | public ulong id { get; set; }
34 | public ulong product_id { get; set; }
35 | public ulong creator_id { get; set; }
36 | public ulong last_editor_id { get; set; }
37 | public string from_whom { get; set; }
38 | public string title { get; set; }
39 | public string remark { get; set; }
40 | public int level { get; set; }
41 | public int state { get; set; }
42 | public DateTime created { get; set; }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IWorkUnit.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | public interface IWorkUnit
28 | {
29 | ulong project_id { get; set; }
30 | ulong parent_id { get; set; }
31 | ulong id { get; set; }
32 | ulong product_id { get; set; }
33 | ulong version_id { get; set; }
34 | ulong module_id { get; set; }
35 | ulong creator_id { get; set; }
36 | ulong executor_id { get; set; }
37 | string members { get; set; }
38 | string title { get; set; }
39 | DateTime? start_date { get; set; }
40 | DateTime? finish_date { get; set; }
41 | int level { get; set; }
42 | int state { get; set; }
43 | DateTime created { get; set; }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/UserRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 |
15 | /*
16 | Copyright (C) 2019 Jiang Ming Feng
17 | Github: https://github.com/mfjiang
18 | Contact: hamlet.jiang@live.com
19 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
20 |
21 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
22 |
23 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
24 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
25 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 |
27 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
28 |
29 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
30 |
31 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
32 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 | */
34 |
35 | public class UserRepo : DataRepoBase
36 | {
37 | public UserRepo(string connStr) : base(connStr)
38 | {
39 |
40 | }
41 |
42 | public DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize = 50, int pageNo = 1, string fields = "*")
43 | {
44 | return base.GetDataPage(sqlQuery, orderBy, "user", pageSize, pageNo, fields);
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/WorkTaskRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class WorkTaskRepo : DataRepoBase
35 | {
36 | public WorkTaskRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 |
41 | public DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize = 50, int pageNo = 1, string fields = "*")
42 | {
43 | return base.GetDataPage(sqlQuery, orderBy, "work_task", pageSize, pageNo, fields);
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/RoadMapRepo.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using MySql.Data.MySqlClient;
3 | using System.Linq;
4 | using Dapper;
5 | using Dapper.Contrib;
6 | using Dapper.Contrib.Extensions;
7 | using System.Collections.Generic;
8 | using System.Text;
9 | using System.Data.SqlClient;
10 | using GoGoGo.Abstract.Entity;
11 |
12 | namespace GoGoGo.DataStorage
13 | {
14 | /*
15 | Copyright (C) 2019 Jiang Ming Feng
16 | Github: https://github.com/mfjiang
17 | Contact: hamlet.jiang@live.com
18 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
19 |
20 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
21 |
22 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
23 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 |
26 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
27 |
28 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
29 |
30 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
31 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 | */
33 |
34 | public class RoadMapRepo : DataRepoBase
35 | {
36 | public RoadMapRepo(string connStr) : base(connStr)
37 | {
38 |
39 | }
40 |
41 | public DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize = 50, int pageNo = 1, string fields = "*")
42 | {
43 | return base.GetDataPage(sqlQuery, orderBy, "roadmap", pageSize, pageNo, fields);
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/store/index.js:
--------------------------------------------------------------------------------
1 | import Vue from "vue";
2 | import Vuex from "vuex";
3 |
4 | import { getToken, setToken } from "@/libs/";
5 |
6 | Vue.use(Vuex);
7 |
8 | export default new Vuex.Store({
9 | state: {
10 | token: getToken(),
11 | hasUserInfo: false,
12 | user: {
13 | name: ""
14 | }
15 | },
16 | mutations: {
17 | updateUserName(state, value) {
18 | state.user.name = value;
19 | },
20 | setToken(state, value) {
21 | state.token = value;
22 | setToken(value);
23 | },
24 | setAccessKeys(state, value) {},
25 | setHasUserInfo(state, value) {
26 | state.hasUserInfo = value;
27 | }
28 | },
29 | actions: {
30 | /**
31 | * 保存token
32 | * @param {string} token
33 | */
34 | saveAccessToken({ commit }, { token }) {
35 | return new Promise((resolve, reject) => {
36 | if (token) {
37 | commit("setToken", token);
38 | commit("setHasUserInfo", false);
39 | resolve(token);
40 | } else {
41 | reject();
42 | }
43 | });
44 | },
45 |
46 | /**
47 | * 清理token
48 | */
49 | clearToken({ commit }) {
50 | return new Promise(resolve => {
51 | commit("setToken", "");
52 | commit("setAccessKeys", []);
53 | commit("setHasUserInfo", false);
54 | resolve();
55 | });
56 | },
57 |
58 | /**
59 | * 更新当前用户信息
60 | */
61 | updateUserInfo({ commit }, { data }) {
62 | return new Promise(resolve => {
63 | commit("updateUserName", data.userName);
64 | // commit("updateUserName", data.displayName);
65 | commit("setAccessKeys", []);
66 | commit("setHasUserInfo", true);
67 | resolve(data);
68 | });
69 | }
70 | }
71 | });
72 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IAgileProject.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | public interface IAgileProject
28 | {
29 | ulong id { get; set; }
30 | string title { get; set; }
31 | ulong creator_id { get; set; }
32 | ulong last_editor_id { get; set; }
33 | ulong chife_manager_id { get; set; }
34 | ulong executor_id { get; set; }
35 | int level { get; set; }
36 | int state { get; set; }
37 | DateTime? start_date { get; set; }
38 | DateTime? finish_date { get; set; }
39 | List work_units { get; set; }
40 | List roadmap { get; set; }
41 | DateTime created { get; set; }
42 |
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IDiscussion.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IDiscussion
27 | {
28 | ulong id { get; set; }
29 | ulong reply_to { get; set; }
30 | ulong sender_id { get; set; }
31 | string sender_name { get; set; }
32 | //ulong send_to_id { get; set; }
33 | //string send_to_name { get; set; }
34 | //string send_to_group { get; set; }
35 | ulong product_id { get; set; }
36 | ulong module_id { get; set; }
37 | ulong feature_id { get; set; }
38 | ulong issues_id { get; set; }
39 | ulong task_id { get; set; }
40 | ulong test_record_id { get; set; }
41 | string content { get; set; }
42 | DateTime created { get; set; }
43 |
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/views/layout/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
48 |
49 |
99 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/assets/css/app.less:
--------------------------------------------------------------------------------
1 | .clearfix:before,
2 | .clearfix:after {
3 | content: "\0020";
4 | display: block;
5 | height: 0;
6 | visibility: hidden;
7 | }
8 | .clearfix {
9 | zoom: 1;
10 | }
11 | .clearfix:after {
12 | clear: both;
13 | }
14 | * html .clearfix {
15 | zoom: 1;
16 | }
17 | *:first-child + html .clearfix {
18 | zoom: 1;
19 | }
20 | .hidden {
21 | border: 0 !important;
22 | clip: rect(1px 1px 1px 1px);
23 | clip: rect(1px, 1px, 1px, 1px);
24 | height: 1px !important;
25 | margin: -1px;
26 | overflow: hidden;
27 | padding: 0 !important;
28 | position: absolute !important;
29 | width: 1px;
30 | }
31 | .display-block {
32 | display: block;
33 | }
34 | .display-none,
35 | .display-hide {
36 | display: none;
37 | }
38 | .inline {
39 | display: inline;
40 | }
41 | .text-right {
42 | text-align: right !important;
43 | }
44 | .text-left {
45 | text-align: left !important;
46 | }
47 | .text-center {
48 | text-align: center !important;
49 | }
50 | .pull-left {
51 | float: left !important;
52 | }
53 | .pull-right {
54 | float: right !important;
55 | }
56 |
57 | /****/
58 | pre {
59 | font-size: 12px;
60 | padding: 16px;
61 | background-color: rgba(0, 69, 120, 1);
62 | color: #fff;
63 | text-overflow: clip;
64 | word-break: break-all;
65 | word-wrap: break-word;
66 | border: 1px solid #d3d3d3;
67 | border-radius: 3px;
68 | white-space: pre-wrap;
69 | font-size: 14px;
70 | display: block;
71 | }
72 |
73 | /*****/
74 | .search-bar {
75 | margin-bottom: 15px;
76 |
77 | .searbar-button {
78 | text-align: center;
79 | }
80 | }
81 |
82 | .table-toolbar {
83 | margin-bottom: 10px;
84 |
85 | .el-button-group + .el-button-group {
86 | margin-left: 10px;
87 | }
88 | }
89 |
90 | .table-searchbar {
91 | // margin-bottom: 10px;
92 | }
93 |
94 | .table-footer {
95 | margin-top: 10px;
96 | }
97 |
98 | .btn-block {
99 | width: 100%;
100 | display: block;
101 | }
102 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/views/layout/top.vue:
--------------------------------------------------------------------------------
1 |
2 |
25 |
26 |
27 |
67 |
68 |
--------------------------------------------------------------------------------
/GoGoGo.DataStorage/AglieProjectRepo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Data;
3 | using MySql.Data.MySqlClient;
4 | using System.Linq;
5 | using Dapper;
6 | using Dapper.Contrib;
7 | using Dapper.Contrib.Extensions;
8 | using System.Collections.Generic;
9 | using System.Text;
10 | using System.Data.SqlClient;
11 | using GoGoGo.Entity;
12 | using GoGoGo.Abstract.Entity;
13 |
14 | namespace GoGoGo.DataStorage
15 | {
16 | /*
17 | Copyright (C) 2019 Jiang Ming Feng
18 | Github: https://github.com/mfjiang
19 | Contact: hamlet.jiang@live.com
20 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
21 |
22 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
23 |
24 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
25 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 |
28 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
29 |
30 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
31 |
32 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
33 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34 | */
35 |
36 | public class AglieProjectRepo : DataRepoBase
37 | {
38 | public AglieProjectRepo(string connStr) : base(connStr)
39 | {
40 |
41 | }
42 |
43 | public DataSet GetDataPage(string sqlQuery, string orderBy, int pageSize = 50, int pageNo = 1, string fields = "*")
44 | {
45 | return base.GetDataPage(sqlQuery, orderBy, "aglie_project", pageSize, pageNo, fields);
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/ProductFeature.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | [Serializable]
30 | [Table("product_feature")]
31 | public class ProductFeature:IProductFeature
32 | {
33 | [Key]
34 | public ulong id { get; set; }
35 | public ulong product_id { get; set; }
36 | public ulong module_id { get; set; }
37 | public ulong creator_id { get; set; }
38 | public ulong last_editor_id { get; set; }
39 | public string title { get; set; }
40 | public string remark { get; set; }
41 | public int level { get; set; }
42 | public int state { get; set; }
43 | public DateTime created { get; set; }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/ITestRecord.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface ITestRecord
27 | {
28 | ulong id { get; set; }
29 | ulong version_id { get; set; }
30 | ulong product_id { get; set; }
31 | ulong module_id { get; set; }
32 | ulong use_case_id { get; set; }
33 | ulong creator_id { get; set; }
34 | ulong confirm_by_id { get; set; }
35 | string remark { get; set; }
36 | int report_type { get; set; }
37 | ulong report_to { get; set; }
38 | ulong tester_id { get; set; }
39 | string report_to_cc { get; set; }
40 | int level { get; set; }
41 | int state { get; set; }
42 | DateTime? confirm_time { get; set; }
43 | DateTime? close_time { get; set; }
44 | DateTime created { get; set; }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/LogManCore/LogLevel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace LogMan
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | ///
30 | /// 表示输出日志的级别
31 | ///
32 | public enum LogLevel : int
33 | {
34 | ///
35 | /// 未配置
36 | ///
37 | Unknown,
38 | ///
39 | /// 什么也不输出
40 | ///
41 | None,
42 | ///
43 | /// 一般消息
44 | ///
45 | Info,
46 | ///
47 | /// 警告
48 | ///
49 | Warn,
50 | ///
51 | /// 一般异常
52 | ///
53 | Error,
54 | ///
55 | /// 致命异常
56 | ///
57 | Fatal
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IUser.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | public interface IUser
28 | {
29 | ulong id { get; set; }
30 | string mobile_no { get; set; }
31 | string wx_uuid { get; set; }
32 | string wx_name { get; set; }
33 | string wx_avata_url { get; set; }
34 | string nick_name { get; set; }
35 | string real_name { get; set; }
36 | string title { get; set; }
37 | string pwd { get; set; }
38 | string work_groups { get; set; }
39 | string roles { get; set; }
40 | string employee_no { get; set; }
41 | string email { get; set; }
42 | bool is_banned { get; set; }
43 | DateTime? last_login_date { get; set; }
44 | string last_session_id { get; set; }
45 | string last_login_ip { get; set; }
46 | DateTime created { get; set; }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Gogogo.IF/Flags.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 |
27 | public enum TestReportType : int
28 | {
29 | Bug = 1,
30 | Suggestion,
31 | Improvement
32 | }
33 |
34 | //todo: Make product types and task types configurable.
35 |
36 | public enum DefaultTaskType : int
37 | {
38 | Standard = 100,
39 | ProjectManagement,
40 | ArchitectureDesign,
41 | ProductDesign,
42 | UIDesign,
43 | UEDesign,
44 | MediaDesign,
45 | Development,
46 | Research,
47 | Documention,
48 | Test,
49 | Publish,
50 | Deploy
51 | }
52 |
53 | public enum DefaultProductType : int
54 | {
55 | Software = 1000,
56 | SystemIntegration,
57 | BuildingsAndInfrastructure,
58 | IdesaAndDesign,
59 | ResearchSubjects,
60 | TechnicalEquipments
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/Gogogo.IF/Entity/IWorkTask.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace GoGoGo.Abstract.Entity
6 | {
7 | /*
8 | Copyright (C) 2019 Jiang Ming Feng
9 | Github: https://github.com/mfjiang
10 | Contact: hamlet.jiang@live.com
11 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
12 |
13 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
14 |
15 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
16 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 |
19 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
20 |
21 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
22 |
23 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
24 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 | */
26 | public interface IWorkTask
27 | {
28 | ulong id { get; set; }
29 | ulong creator_id { get; set; }
30 | ulong executor_id { get; set; }
31 | int task_type { get; set; }
32 | string title { get; set; }
33 | int level { get; set; }
34 | int state { get; set; }
35 | ulong workunit_id { get; set; }
36 | ulong test_record_id { get; set; }
37 | int confirm_state { get; set; } // confirm if access the task by executor member
38 | int review_state { get; set; } // review the task by manager
39 | ulong confirm_by_id { get; set; }
40 | ulong review_by_id { get; set; }
41 | DateTime? confirm_time { get; set; }
42 | DateTime? review_time { get; set; }
43 | DateTime? close_time { get; set; }
44 | DateTime created { get; set; }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/ProductModule.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | [Serializable]
30 | [Table("product_module")]
31 | public class ProductModule: IProductModule
32 | {
33 | [Key]
34 | public ulong id { get; set; }
35 | public string module_code { get; set; }
36 | public ulong creator_id { get; set; }
37 | public ulong last_editor_id { get; set; }
38 | public ulong version_id { get; set; }
39 | public ulong parent_id { get; set; }
40 | public ulong product_id { get; set; }
41 | public string title { get; set; }
42 | public string remark { get; set; }
43 | public int level { get; set; }
44 | public int state { get; set; }
45 | public DateTime created { get; set; }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/LogManCore/LogAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace LogMan
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | ///
30 | /// 表示自定义日志输出的属性类
31 | ///
32 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, Inherited = false)]
33 | public class LogAttribute : Attribute
34 | {
35 | ///
36 | /// 获取或设置日志级别
37 | ///
38 | public LogLevel LogLevel { get; set; }
39 |
40 | ///
41 | /// 获取或设置日志名
42 | ///
43 | public string LogName { get; set; }
44 |
45 | ///
46 | /// 获取或设置日志文件后缀 如 .log
47 | ///
48 | public string FileSuffix { get; set; }
49 |
50 | ///
51 | /// 获取或设置自动清理日志的天数
52 | ///
53 | public int AutoCleanDays { get; set; }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/UseCase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | [Serializable]
30 | [Table("usecase")]
31 | public class UseCase:IUseCase
32 | {
33 | [Key]
34 | public ulong id { get; set; }
35 | public ulong product_id { get; set; }
36 | public ulong module_id { get; set; }
37 | public ulong creator_id { get; set; }
38 | public ulong last_editor_id { get; set; }
39 | public string test_path { get; set; }
40 | public string remark { get; set; }
41 | public string paramas { get; set; }
42 | public string expected_results { get; set; }
43 | public string tested_results { get; set; }
44 | public bool quality_pass { get; set; }
45 | public int state { get; set; }
46 | public DateTime created { get; set; }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/GoGoGo.Entity/Product.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.ComponentModel.DataAnnotations.Schema;
4 | using System.Text;
5 | using GoGoGo.Abstract.Entity;
6 |
7 | namespace GoGoGo.Entity
8 | {
9 | /*
10 | Copyright (C) 2019 Jiang Ming Feng
11 | Github: https://github.com/mfjiang
12 | Contact: hamlet.jiang@live.com
13 | License: https://github.com/mfjiang/GoGoGo/blob/master/LICENSE
14 |
15 | 这一程序库是自由软件,您可以遵照自由软件基金会出版的 GNU General Public License (以下简称 GNU GPL v3)条款来修改和重新发布这一程序库,或者用许可证的第二版,或者 (根据您的选择) 用任何更新的版本。
16 |
17 | 发布这一程序库的目的是希望它有用,但没有任何担保。甚至没有适合特定目的而隐含的担保。更详细的情况请参阅 GNU GPL v3条款。
18 | 您应该已经和程序库一起收到一份 GNU GPL v3内容的副本。如果还没有,写信给:
19 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 |
21 | This library is free software, you can modify and republish this program in accordance with the terms of the GNU Lesser General Public License published by the Free Software Foundation, or use the second version of the license, or (depending on your choice) Use any updated version.
22 |
23 | The purpose of publishing this library is to make it useful, but without any guarantee. There are no guarantees that are implied for a specific purpose. For more details, please refer to the GNU Lesser General Public License.
24 |
25 | You should have received a copy of the GNU Lesser General Public License along with the library. If not, write to:
26 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 | */
28 |
29 | [Serializable]
30 | [Table("product")]
31 | public class Product:IProduct
32 | {
33 | [Key]
34 | public ulong id { get; set; }
35 | public int product_type { get; set; }
36 | public string code { get; set; }
37 | public string name { get; set; }
38 | public string remark { get; set; }
39 | public string main_ver { get; set; }
40 | public string source_uri { get; set; }
41 | public string open_api_uri { get; set; }
42 | public ulong creator_id { get; set; }
43 | public ulong last_editor_id { get; set; }
44 | public int level { get; set; }
45 | public int state { get; set; }
46 | public DateTime? last_updated { get; set; }
47 | public DateTime created { get; set; }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/GoGoGo.WebApp/ClientApp/src/views/login/index.vue:
--------------------------------------------------------------------------------
1 |
2 |