記錄一次開源工單系統
阿新 • • 發佈:2020-05-03
## 功能介紹
基於go語言開發的工單後臺管理系統
發單人釋出工單,收單人處理工單。 管理員對於人員做審計和工單做審計及上傳公告
![流程圖.png](https://upload-images.jianshu.io/upload_images/12765605-46ea997f5e1df180.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
## 開發環境
```source-powershell
go version go1.13.6 windows/amd64
github.com/astaxie/beego v1.12.1
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/gofrs/uuid v3.2.0+incompatible
github.com/jinzhu/gorm v1.9.12
mariadb[5.6]
```
## [](https://github.com/haozheyu/order_system#%E9%83%A8%E7%BD%B2%E8%A6%81%E6%B1%82)部署要求
```source-shell
##Centos 7/8 firewall 開啟8080 修改配置檔案的mysql連結地址 匯入sql檔案(sql 檔案在 conf 目錄)
#1 配置資料庫
yum install mariadb
firewall-cmd --add-port=3306/tcp --permanent
mysql
source /xxx/xxx/conf/backup_2020-5-3.sql
grant all on ticket_system.* to "xx"@"%" identified by 'passowrd';
#2 修改conf資料夾下的app.conf檔案帶##都是需要自定義的
appname = OrdsOrder
httpport = 8080 ##
runmode = dev
copyrequestbody = true
mysqluser = "root" ##
mysqlpass = "123123" ##
mysqlurls = "192.168.1.119" ##
mysqldb = "ticket_system" ##
#3 修改conf資料夾下的order.service,然後將檔案拷貝到/usr/lib/systemd/system/
# systemctl enable order.service --new
[Unit]
Description=Sys order server damon
After=network-online.target
Wants=network-online.target
[Service]
# modify when deploy in prod env
User=root ##
Group=root ##
Type=simple
ExecStart=/xxx/xxx/OrdsOrder ## 你的執行檔案的路徑
WorkingDirectory=/xxx/xxx/ ##執行檔案的目錄
Restart=always
RestartSec=1
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
```
## 實現效果
![homepage.png](https://upload-images.jianshu.io/upload_images/12765605-539a7d529396a8d4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![pu'sh.png](https://upload-images.jianshu.io/upload_images/12765605-e0525b224ed1c3ee.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![人員審計.png](https://upload-images.jianshu.io/upload_images/12765605-0a074222160e691f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
[github]([https://github.com/haozheyu/order_system](https://github.com/haozheyu/order_system)
)第一次開源專案,感興趣的小夥伴點點星星。長路漫漫你的關注就是我持續開源的