24 changed files with 1296 additions and 17 deletions
@ -0,0 +1,394 @@ |
|||
package dutyassess |
|||
|
|||
import ( |
|||
"strconv" |
|||
|
|||
"github.com/flipped-aurora/gin-vue-admin/server/api/v1/archiveapi" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/api/v1/assessment" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/api/v1/examtestpage" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/commonus" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/global" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/model/assessmentmodel" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response" |
|||
"github.com/gin-gonic/gin" |
|||
) |
|||
|
|||
//入口
|
|||
func (d *DutyAssessApi) Index(c *gin.Context) { |
|||
outPut := commonus.MapOut() |
|||
response.Result(0, outPut, "管理端获取成功", c) |
|||
} |
|||
|
|||
//获取部门被考核时间表
|
|||
func (d *DutyAssessApi) GetDepartEvaluate(c *gin.Context) { |
|||
isTrue, userCont := commonus.AdminClientIdentity() |
|||
if isTrue != true { |
|||
response.Result(101, isTrue, "您的身份令牌已经失效!请重新登录获取身份令牌!", c) |
|||
return |
|||
} |
|||
var requestData getDepartAssObtain |
|||
err := c.ShouldBindJSON(&requestData) |
|||
if err != nil { |
|||
// response.Result(101, err, "参数错误!请重新提交!", c)
|
|||
// return
|
|||
} |
|||
if requestData.PageSize == 0 { |
|||
requestData.PageSize = 20 |
|||
} |
|||
if requestData.Page <= 0 { |
|||
requestData.Page = 1 |
|||
} |
|||
var timeUnix int64 |
|||
if requestData.Time != "" { |
|||
timeStr := requestData.Time + "-01 12:00:00" |
|||
assessmentTime, assessmentTimeErr := commonus.DateToTimeStampEs(timeStr) |
|||
if assessmentTimeErr == true { |
|||
timeUnix = assessmentTime |
|||
} |
|||
} else { |
|||
timeUnix = 0 |
|||
} |
|||
|
|||
offSetPage := commonus.CalculatePages(requestData.Page, requestData.PageSize) |
|||
//获取管理信息
|
|||
attriButeId, attriButeErr := strconv.ParseInt(userCont.AttriBute, 10, 64) //转换管理员属性部门
|
|||
|
|||
var departScorsList []assessmentmodel.Departscores |
|||
|
|||
gormDb := global.GVA_DB_Performanceappraisal.Model(&assessmentmodel.Departscores{}).Select("s_file_time", "s_depart_id").Where("`s_state` = 1") |
|||
if requestData.DepartID != "" { |
|||
if timeUnix != 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ? AND `s_depart_id` = ?", timeUnix, requestData.DepartID) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_depart_id` = ?", requestData.DepartID) |
|||
} |
|||
} else { |
|||
if attriButeErr == nil { |
|||
if attriButeId != 0 { |
|||
if timeUnix != 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ? AND `s_depart_id` = ?", timeUnix, attriButeId) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_depart_id` = ?", attriButeId) |
|||
} |
|||
} else { |
|||
groupId, groupIdErr := strconv.ParseInt(userCont.Group, 10, 64) |
|||
if groupIdErr == nil { |
|||
if groupId != 1 { |
|||
deparIsTrue, departMap := getGroupDepartIdMap(groupId) |
|||
if deparIsTrue == true { |
|||
if len(departMap.Id) > 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ? AND `s_depart_id` IN ?", timeUnix, departMap.Id) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_depart_id` = ?", attriButeId) |
|||
} |
|||
} else { |
|||
if timeUnix != 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ?", timeUnix) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id") |
|||
} |
|||
} |
|||
} else { |
|||
if timeUnix != 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ?", timeUnix) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id") |
|||
} |
|||
} |
|||
|
|||
} else { |
|||
if timeUnix != 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ?", timeUnix) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id") |
|||
} |
|||
} |
|||
} |
|||
} else { |
|||
if timeUnix != 0 { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id").Having("`s_file_time` = ?", timeUnix) |
|||
} else { |
|||
gormDb = gormDb.Group("s_file_time,s_depart_id") |
|||
} |
|||
} |
|||
} |
|||
|
|||
/* |
|||
获取总共有多少记录 |
|||
*/ |
|||
var total int64 |
|||
totalErr := gormDb.Count(&total).Error |
|||
if totalErr != nil { |
|||
total = 0 |
|||
} |
|||
//获取记录数据
|
|||
evaErr := gormDb.Limit(requestData.PageSize).Offset(offSetPage).Find(&departScorsList).Error |
|||
|
|||
if evaErr != nil { |
|||
response.Result(104, evaErr, "数据获取失败!", c) |
|||
return |
|||
} |
|||
var departMonthAry []departMonthMap |
|||
for _, val := range departScorsList { |
|||
var departMonthCont departMonthMap |
|||
departMonthCont.DepartId = val.DepartId |
|||
|
|||
// departMonthCont.DepartId = val.DepartId
|
|||
bfIsTrue, bfInfo := assessment.GetBranchFactory(val.DepartId) |
|||
if bfIsTrue == true { |
|||
departMonthCont.DepartTitle = bfInfo.Name |
|||
} |
|||
departMonthCont.TimeStr = strconv.FormatInt(val.FileTime, 10) |
|||
departMonthCont.DateStr = commonus.TimeStampToDate(val.FileTime, 10) |
|||
departMonthAry = append(departMonthAry, departMonthCont) |
|||
} |
|||
countSum := len(departMonthAry) |
|||
printData := commonus.OutPutList(total, int64(countSum), requestData.Page, requestData.PageSize, departMonthAry) |
|||
response.Result(0, printData, "查询成功!", c) |
|||
} |
|||
|
|||
//获取部门考核列表
|
|||
func (d *DutyAssessApi) GetDepartmentAssessList(c *gin.Context) { |
|||
var requestData getDepartAssObtains |
|||
err := c.ShouldBindJSON(&requestData) |
|||
if err != nil { |
|||
// response.Result(101, err, "参数错误!请重新提交!", c)
|
|||
// return
|
|||
} |
|||
// if requestData.PageSize == 0 {
|
|||
// requestData.PageSize = 20
|
|||
// }
|
|||
// if requestData.Page <= 0 {
|
|||
// requestData.Page = 1
|
|||
// }
|
|||
if requestData.Time == "" { |
|||
response.Result(103, err, "未知时间!", c) |
|||
return |
|||
} |
|||
if requestData.DepartID == "" { |
|||
response.Result(103, err, "未知部门!", c) |
|||
return |
|||
} |
|||
timeStr := requestData.Time + "-01 12:00:00" |
|||
assessmentTime, assessmentTimeErr := commonus.DateToTimeStampEs(timeStr) |
|||
if assessmentTimeErr != true { |
|||
response.Result(104, timeStr, "你提交的考核日期错误!", c) |
|||
return |
|||
} |
|||
|
|||
isTrue, _ := commonus.AdminClientIdentity() |
|||
// isTrue, userCont := commonus.AdminClientIdentity()
|
|||
if isTrue != true { |
|||
response.Result(101, err, "您的身份令牌已经失效!请重新登录获取身份令牌!", c) |
|||
return |
|||
} |
|||
|
|||
// var departScorsList []assessmentmodel.Departscores
|
|||
|
|||
// gormDb := global.GVA_DB_Performanceappraisal.Model(&assessmentmodel.Departscores{}).Select("s_class").Where("`s_file_time` = ? AND `s_state` = 1", assessmentTime)
|
|||
|
|||
// attriButeId, attriButeErr := strconv.ParseInt(userCont.AttriBute, 10, 64) //转换管理员属性部门
|
|||
// if attriButeErr == nil {
|
|||
// if attriButeId != 0 {
|
|||
// gormDb = gormDb.Where("`s_depart_id` = ?", attriButeId)
|
|||
// } else {
|
|||
// groupId, groupIdErr := strconv.ParseInt(userCont.Group, 10, 64)
|
|||
// if groupIdErr == nil {
|
|||
// if groupId != 1 {
|
|||
// deparIsTrue, departMap := getGroupDepartIdMap(groupId)
|
|||
// if deparIsTrue == true {
|
|||
// if len(departMap.Id) > 0 {
|
|||
// gormDb = gormDb.Where("`s_depart_id` IN ?", departMap.Id)
|
|||
// }
|
|||
// }
|
|||
// }
|
|||
|
|||
// }
|
|||
|
|||
// }
|
|||
// }
|
|||
// scorErr := gormDb.Group("s_class").Find(&departScorsList).Error
|
|||
|
|||
// if scorErr != nil {
|
|||
// response.Result(104, scorErr, "未能获取到数据!", c)
|
|||
// return
|
|||
// }
|
|||
|
|||
// var departMonthList []departMonth
|
|||
// for _, val := range departScorsList {
|
|||
// var departMonthInfo departMonth
|
|||
// departMonthInfo.Id = val.ClassId
|
|||
// classErr, classInfo := assessment.GetDutyClassCont(val.ClassId)
|
|||
// if classErr == true {
|
|||
// departMonthInfo.Title = classInfo.Title
|
|||
// }
|
|||
// assErr, assList := GetAssList(val.ClassId, val.DepartId, assessmentTime)
|
|||
// if assErr == true {
|
|||
// departMonthInfo.Clide = assList
|
|||
// }
|
|||
// fmt.Printf("-------->%v----->%v\n", assErr, assList)
|
|||
// departMonthList = append(departMonthList, departMonthInfo)
|
|||
// }
|
|||
// outPrint := commonus.MapOut()
|
|||
// outPrint["list"] = departMonthList
|
|||
// response.Result(0, outPrint, "获取成功!", c)
|
|||
var departScorsList []assessmentmodel.Departscores |
|||
scorErr := global.GVA_DB_Performanceappraisal.Model(&assessmentmodel.Departscores{}).Select("s_class").Where("`s_depart_id` = ? AND `s_file_time` = ? AND `s_state` = 1", requestData.DepartID, assessmentTime).Group("s_class").Find(&departScorsList).Error |
|||
if scorErr != nil { |
|||
response.Result(104, scorErr, "未能获取到数据!", c) |
|||
return |
|||
} |
|||
departIdInt, _ := strconv.ParseInt(requestData.DepartID, 10, 64) //部门ID转换成int64
|
|||
var departMonthList []departMonth |
|||
for _, val := range departScorsList { |
|||
var departMonthInfo departMonth |
|||
departMonthInfo.Id = val.ClassId |
|||
classErr, classInfo := assessment.GetDutyClassCont(val.ClassId) |
|||
if classErr == true { |
|||
departMonthInfo.Title = classInfo.Title |
|||
} |
|||
assErr, assList := GetAssList(val.ClassId, departIdInt, assessmentTime) |
|||
if assErr == true { |
|||
departMonthInfo.Clide = assList |
|||
} |
|||
departMonthList = append(departMonthList, departMonthInfo) |
|||
} |
|||
outPrint := commonus.MapOut() |
|||
outPrint["list"] = departMonthList |
|||
response.Result(0, outPrint, "获取成功!", c) |
|||
|
|||
} |
|||
|
|||
//获取集团下属分厂
|
|||
func getGroupDepartIdMap(groupId int64) (isTrue bool, departId getGroupDepart) { |
|||
isTrue = false |
|||
err, departCont := examtestpage.GetBranchFactoryMap(groupId) |
|||
if err != true { |
|||
return |
|||
} |
|||
var idAry []int64 |
|||
for _, val := range departCont { |
|||
idAry = append(idAry, val.Id) |
|||
} |
|||
departId.Id = idAry |
|||
return |
|||
} |
|||
|
|||
//获取考核项目列表
|
|||
func GetAssList(classId, depart, timeVal int64) (isTrue bool, departMonthAss []departMonthSun) { |
|||
isTrue = false |
|||
var departScorsList []assessmentmodel.Departscores |
|||
scorErr := global.GVA_DB_Performanceappraisal.Model(&assessmentmodel.Departscores{}).Select("s_assess").Where("`s_depart_id` = ? AND `s_file_time` = ? AND `s_class` = ? AND `s_state` = 1", depart, timeVal, classId).Group("s_assess").Find(&departScorsList).Error |
|||
if scorErr != nil { |
|||
return |
|||
} |
|||
for _, val := range departScorsList { |
|||
var departMonthSunsInfo departMonthSun |
|||
departMonthSunsInfo.Id = val.AssessId |
|||
|
|||
classErr, classInfo := assessment.GetAssessClass(val.AssessId) |
|||
if classErr == true { |
|||
departMonthSunsInfo.Title = classInfo.Title |
|||
} |
|||
isErr, userDuty := GetDetailedDuty(classId, val.AssessId, depart, timeVal) |
|||
if isErr == true { |
|||
departMonthSunsInfo.Clide = userDuty |
|||
} |
|||
departMonthAss = append(departMonthAss, departMonthSunsInfo) |
|||
} |
|||
isTrue = true |
|||
return |
|||
} |
|||
|
|||
//获取具体考核项目
|
|||
func GetDetailedDuty(classId, assId, depart, timeVal int64) (isTrue bool, departMonthUser []departMonthSun) { |
|||
isTrue = false |
|||
var departScorsList []commentUser |
|||
scorErr := global.GVA_DB_Performanceappraisal.Model(&assessmentmodel.Departscores{}).Select("s_comment_user").Where("`s_depart_id` = ? AND `s_file_time` = ? AND `s_class` = ? AND `s_assess` = ? AND `s_state` = 1", depart, timeVal, classId, assId).Group("s_comment_user").Find(&departScorsList).Error |
|||
// fmt.Printf("----------->%v\n", departScorsList)
|
|||
if scorErr != nil { |
|||
return |
|||
} |
|||
// var departMonthUser []departMonthSun
|
|||
for _, val := range departScorsList { |
|||
var departMonthUserInfo departMonthSun |
|||
departMonthUserInfo.Id = val.UserKey |
|||
usCont, usErr := archiveapi.GetUserInfo([]string{"worker_man.wm_number", "worker_man_data.wmd_name", "worker_man.wm_bf_id", "worker_man.wm_ws_id", "worker_man.wm_pt_id", "worker_man.wm_group"}, map[string]interface{}{"wm_key": val.UserKey}) |
|||
if usErr == true { |
|||
departMonthUserInfo.Title = usCont.Name |
|||
|
|||
isTrueBranFact, branFactCont := assessment.GetBranchFactory(usCont.DepartmentId) |
|||
if isTrueBranFact == true { |
|||
departMonthUserInfo.DepartTitle = branFactCont.Name |
|||
} |
|||
|
|||
} |
|||
|
|||
dutyErr, dutyMap := GetDutyContAry(classId, assId, depart, val.UserKey, timeVal) |
|||
if dutyErr == true { |
|||
departMonthUserInfo.List = dutyMap |
|||
} |
|||
|
|||
departMonthUser = append(departMonthUser, departMonthUserInfo) |
|||
} |
|||
isTrue = true |
|||
return |
|||
} |
|||
|
|||
//获取考核具体职责项目
|
|||
func GetDutyContAry(classId, assId, depart, userKey, timeVal int64) (isTrue bool, dutyList []departDutyList) { |
|||
// fmt.Printf("--->%v--->%v\n", classId, assId)
|
|||
isTrue = false |
|||
var dutyListMAp []departDutyList |
|||
scorErr := global.GVA_DB_Performanceappraisal.Where("`s_depart_id` = ? AND `s_file_time` = ? AND `s_class` = ? AND `s_assess` = ? AND `s_comment_user` = ? AND `s_state` = 1", depart, timeVal, classId, assId, userKey).Find(&dutyListMAp).Error |
|||
if scorErr != nil { |
|||
return |
|||
} |
|||
// fmt.Printf("1--->%v--->%v\n", classId, assId)
|
|||
for _, val := range dutyListMAp { |
|||
// fmt.Printf("2--->%v--->%v\n", classId, assId)
|
|||
var dutyCont departDutyList |
|||
|
|||
dutyCont.Id = val.Id |
|||
dutyCont.ClassId = val.ClassId |
|||
dutyCont.AssessId = val.AssessId |
|||
dutyCont.DutyId = val.DutyId |
|||
dutyCont.DeductPoints = val.DeductPoints |
|||
dutyCont.ExtraPoints = val.ExtraPoints |
|||
dutyCont.Score = val.Score |
|||
dutyCont.FileTime = val.FileTime |
|||
dutyCont.DepartId = val.DepartId |
|||
dutyCont.CommentUser = val.CommentUser |
|||
dutyCont.AddTime = val.AddTime |
|||
dutyCont.EiteTime = val.EiteTime |
|||
dutyCont.State = val.State |
|||
dtyContErr, dtyCont := GetDutyInfoCont(val.DutyId) |
|||
|
|||
if dtyContErr == true { |
|||
dutyCont.DutyTitle = dtyCont.DutyTitle |
|||
} |
|||
dutyList = append(dutyList, dutyCont) |
|||
} |
|||
isTrue = true |
|||
return |
|||
} |
|||
|
|||
//获取职责类别内容
|
|||
func GetDutyInfoCont(id int64) (isTrue bool, outAssDutyInfo outAessDuty) { |
|||
isTrue = false |
|||
var ContInfo dutyAssClass |
|||
err := global.GVA_DB_Performanceappraisal.Model(&assessmentmodel.DutyContent{}).Select("dc_title", "dc_parent", "ai_title", "ai_parent").Joins("left join assessmentitems on assessmentitems.ai_id = dutycontent.dc_parent").Where("dc_id = ?", id).First(&ContInfo).Error |
|||
if err != nil { |
|||
return |
|||
} |
|||
outAssDutyInfo.AssessId = ContInfo.PartId |
|||
outAssDutyInfo.AssessTitle = ContInfo.AssTitle |
|||
outAssDutyInfo.DutyTitle = ContInfo.Title |
|||
outAssDutyInfo.ClassId = ContInfo.AssPartId |
|||
classErr, classInfo := assessment.GetDutyClassCont(ContInfo.AssPartId) |
|||
if classErr == true { |
|||
outAssDutyInfo.ClassTitle = classInfo.Title |
|||
} |
|||
isTrue = true |
|||
return |
|||
} |
|||
@ -0,0 +1,75 @@ |
|||
package dutyassess |
|||
|
|||
import ( |
|||
"github.com/flipped-aurora/gin-vue-admin/server/commonus" |
|||
"github.com/flipped-aurora/gin-vue-admin/server/model/assessmentmodel" |
|||
) |
|||
|
|||
type DutyAssessApi struct{} |
|||
|
|||
//获取部门考核列表
|
|||
type getDepartAssObtain struct { |
|||
commonus.PageSetLimt |
|||
DepartID string `json:"depart"` //部门Id
|
|||
Time string `json:"time"` //查询日期
|
|||
} |
|||
type getDepartAssObtains struct { |
|||
// commonus.PageSetLimt
|
|||
DepartID string `json:"depart"` //部门Id
|
|||
Time string `json:"time"` //查询日期
|
|||
} |
|||
|
|||
//获取集团分厂
|
|||
type getGroupDepart struct { |
|||
Id []int64 |
|||
} |
|||
|
|||
//部门月份具体考核详情
|
|||
type departMonth struct { |
|||
Id int64 `json:"id"` |
|||
Title string `json:"title"` |
|||
Clide []departMonthSun `json:"Clide"` |
|||
} |
|||
|
|||
type departMonthSun struct { |
|||
Id int64 `json:"id"` |
|||
Title string `json:"title"` |
|||
DepartTitle string `json:"departTitle"` |
|||
Clide []departMonthSun `json:"Clide"` |
|||
List []departDutyList `json:"list"` |
|||
} |
|||
type departDutyList struct { |
|||
assessmentmodel.Departscores |
|||
DutyTitle string `json:"dutyTitle"` |
|||
} |
|||
|
|||
//归档审批人
|
|||
type commentUser struct { |
|||
UserKey int64 `json:"userkey" gorm:"column:s_comment_user;type:bigint(20) unsigned;default:0;not null;comment:评论人"` |
|||
} |
|||
|
|||
//输出考核关系架构
|
|||
type outAessDuty struct { |
|||
ClassId int64 `json:"classId"` |
|||
ClassTitle string `json:"classTitle"` |
|||
AssessId int64 `json:"assessId"` |
|||
AssessTitle string `json:"assessTitle"` |
|||
DutyTitle string `json:"dutyTitle"` |
|||
} |
|||
|
|||
//具体职责项与考核项目,类别
|
|||
type dutyAssClass struct { |
|||
Title string `json:"title" gorm:"column:dc_title;type:text;comment:具体职责"` |
|||
PartId int64 `json:"partId" gorm:"column:dc_parent;type:bigint(20) unsigned;default:0;not null;comment:父级"` |
|||
AssTitle string `json:"Asstitle" gorm:"column:ai_title;type:varchar(255);comment:考核类别"` |
|||
AssPartId int64 `json:"AsspartId" gorm:"column:ai_parent;type:bigint(20) unsigned;default:0;not null;comment:父级"` |
|||
ClassTitle string `json:"Classtitle" gorm:"column:title;type:varchar(255);comment:职责类别名称"` |
|||
} |
|||
|
|||
//部门月份考核列表
|
|||
type departMonthMap struct { |
|||
DepartId int64 `json:"departId"` //部门ID
|
|||
DepartTitle string `json:"departTitle"` //部门名称
|
|||
TimeStr string `json:"timestr"` //时间字符串
|
|||
DateStr string `json:"datestr"` //日期字符串
|
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
package dutyassess |
|||
|
|||
type ApiGroup struct { |
|||
DutyAssEss DutyAssessApi |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
package admin |
|||
|
|||
import "github.com/flipped-aurora/gin-vue-admin/server/api/admin/dutyassess" |
|||
|
|||
type ApiGroup struct { |
|||
DutyAssess dutyassess.ApiGroup |
|||
} |
|||
|
|||
var ApiGroupApp = new(ApiGroup) |
|||
@ -0,0 +1,23 @@ |
|||
package systemadmin |
|||
|
|||
import ( |
|||
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/admin" |
|||
"github.com/gin-gonic/gin" |
|||
) |
|||
|
|||
type AdminRouter struct{} |
|||
|
|||
func (a *AdminRouter) InitStaffRouter(Router *gin.RouterGroup) { |
|||
adminRouter := Router.Group("admin") |
|||
var authorityApi = v1.ApiGroupApp.DutyAssess.DutyAssEss |
|||
{ |
|||
adminRouter.POST("", authorityApi.Index) //员工档案入口
|
|||
adminRouter.POST("/", authorityApi.Index) //员工档案入口
|
|||
adminRouter.GET("", authorityApi.Index) //员工档案入口
|
|||
adminRouter.GET("/", authorityApi.Index) //员工档案入口
|
|||
|
|||
adminRouter.POST("getdepartevaluate", authorityApi.GetDepartEvaluate) //获取部门考核列表
|
|||
adminRouter.POST("getdepartmentassesslist", authorityApi.GetDepartmentAssessList) //获取考核列表
|
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
package systemadmin |
|||
|
|||
type RouterGroup struct { |
|||
AdminRouter |
|||
} |
|||
@ -0,0 +1,287 @@ |
|||
aliyun-oss: |
|||
endpoint: yourEndpoint |
|||
access-key-id: yourAccessKeyId |
|||
access-key-secret: yourAccessKeySecret |
|||
bucket-name: yourBucketName |
|||
bucket-url: yourBucketUrl |
|||
base-path: yourBasePath |
|||
autocode: |
|||
transfer-restart: true |
|||
root: l:\任官钰\代码\gin-vue-admin-master\gin-vue-admin-master |
|||
server: /server |
|||
server-api: /api/v1/autocode |
|||
server-initialize: /initialize |
|||
server-model: /model/autocode |
|||
server-request: /model/autocode/request/ |
|||
server-router: /router/autocode |
|||
server-service: /service/autocode |
|||
web: /web/src |
|||
web-api: /api |
|||
web-form: /view |
|||
web-table: /view |
|||
captcha: |
|||
key-long: 6 |
|||
img-width: 240 |
|||
img-height: 80 |
|||
casbin: |
|||
model-path: ./resource/rbac_model.conf |
|||
email: |
|||
to: xxx@qq.com |
|||
port: 465 |
|||
from: xxx@163.com |
|||
host: smtp.163.com |
|||
is-ssl: true |
|||
secret: xxx |
|||
nickname: test |
|||
excel: |
|||
dir: ./resource/excel/ |
|||
jwt: |
|||
buffer-time: 86400 |
|||
expires-time: 604800 |
|||
issuer: qmPlus |
|||
signing-key: a77a9442-4c2b-466b-a650-9495e04d285c |
|||
local: |
|||
path: uploads/file |
|||
mysql: |
|||
path: 127.0.0.1:3306 |
|||
config: charset=utf8mb4&parseTime=True&loc=Local |
|||
db-name: gva |
|||
username: gva |
|||
password: "YNsk3zbP4sTASmzJ" |
|||
max-idle-conns: 0 |
|||
max-open-conns: 0 |
|||
log-mode: "" |
|||
log-zap: false |
|||
qiniu: |
|||
zone: ZoneHuaDong |
|||
bucket: "" |
|||
img-path: "" |
|||
use-https: false |
|||
access-key: "" |
|||
secret-key: "" |
|||
use-cdn-domains: false |
|||
redis: |
|||
db: 0 |
|||
addr: 127.0.0.1:6379 |
|||
password: "" |
|||
redisprefix: |
|||
prefix: "HXGK_GO_ZhixingCollege" |
|||
alias: "dev" |
|||
|
|||
system: |
|||
env: public |
|||
addr: 8888 |
|||
db-type: mysql |
|||
oss-type: local |
|||
use-multipoint: true |
|||
iplimit-count: 15000 |
|||
iplimit-time: 3600 |
|||
tencent-cos: |
|||
bucket: xxxxx-10005608 |
|||
region: ap-shanghai |
|||
secret-id: xxxxxxxx |
|||
secret-key: xxxxxxxx |
|||
base-url: https://gin.vue.admin |
|||
path-prefix: github.com/flipped-aurora/gin-vue-admin/server |
|||
timer: |
|||
start: true |
|||
spec: '@daily' |
|||
detail: |
|||
- tableName: sys_operation_records |
|||
compareField: created_at |
|||
interval: 2160h |
|||
- tableName: jwt_blacklists |
|||
compareField: created_at |
|||
interval: 168h |
|||
zap: |
|||
level: info |
|||
format: console |
|||
prefix: '[github.com/flipped-aurora/gin-vue-admin/server]' |
|||
director: log |
|||
showLine: true |
|||
encode-level: LowercaseColorLevelEncoder |
|||
stacktrace-key: stacktrace |
|||
log-in-console: true |
|||
|
|||
|
|||
# mysql connect configuration |
|||
# 其他数据库配置 |
|||
#app主数据库 |
|||
mysqlMaster: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'hengxingaoke_tes' |
|||
username: 'hengxingaoke_tes' |
|||
password: 'JsTt6iTpkZ85wDnF' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#文档属性数据库 |
|||
mysqlBookDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'learnmessage' |
|||
username: 'learnmessage' |
|||
password: 'JyppSdcLT27f7dpB' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#微信员工信息表 |
|||
mysqlWatchDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'wechatuser' |
|||
username: 'wechatuser' |
|||
password: '8jrFG2AzpJPxs88m' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#错题库 |
|||
mysqlErrorSubjectDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'errorsubject' |
|||
username: 'errorsubject' |
|||
password: 'abRcXzraCMFYC4Me' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#自我测验 |
|||
mysqlMyTestDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'selftestdatabase' |
|||
username: 'selftestdatabase' |
|||
password: 'mXDWEBJCd5acnCjD' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#图文信息数据库 |
|||
mysqlBooImgkDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'readdocument' |
|||
username: 'readdocument' |
|||
password: 'CY2yanCmAP8p8bxj' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#计分明细数据库 |
|||
mysqlIntegralDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'leaguetabledata' |
|||
username: 'leaguetabledata' |
|||
password: 'PxeX8Dnw88G4Jpnr' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#趣味问答 |
|||
mysqlQADate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'ques_and_answers' |
|||
username: 'ques_and_answers' |
|||
password: 'CT7XGBrAwdnXkTNX' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#风云榜统计数据库 |
|||
mysqlBillboardDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'statisticsing' |
|||
username: 'statisticsing' |
|||
password: '4iMZNtMT8fk8imEb' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#健康上报数据库 |
|||
mysqlHealthReportDate: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'location' |
|||
username: 'location' |
|||
password: 'XreBJrkYh7K3jfbm' |
|||
max-idle-conns: 10 |
|||
max-open-conns: 100 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#审批流程数据库 |
|||
mysqlApprovalProcess: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'workflow' |
|||
username: 'workflow' |
|||
password: 'kSwXD3LBsnJ8dsz4' |
|||
max-idle-conns: 100 |
|||
max-open-conns: 1500 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
#绩效考核数据库 |
|||
mysqlPerformanceappraisal: |
|||
path: '127.0.0.1:3306' |
|||
config: 'charset=utf8mb4&parseTime=True&loc=Local' |
|||
db-name: 'perform' |
|||
username: 'perform' |
|||
password: 'amtzSrN5WnMsS4hb' |
|||
max-idle-conns: 100 |
|||
max-open-conns: 1500 |
|||
log-mode: false |
|||
log-zap: "" |
|||
|
|||
|
|||
|
|||
|
|||
#企业微信相关设置 |
|||
workwechatid: |
|||
companyid: 'ww02f310301953277a' #企业ID |
|||
|
|||
workwechatschool: #知行学院 |
|||
agentid: 1000008 |
|||
secretstr: 'YJOHrmHtvevAdctg-06TMLnPokIaLHdfrQMyQolZQC8' |
|||
|
|||
workwechatappmaillist: #通讯录 |
|||
secretstr: 'yjcQXkh6_116QKjfZfbRSyzdrFFZ9jbVlKJtL2tn3OU' |
|||
|
|||
healthreport: #健康上报 |
|||
secretstr: 'smjpGmFo5wp18BZGiLaECFr84Blv429v_GFdKp4_0YQ' |
|||
|
|||
#测试企业 |
|||
workwechatids: |
|||
companyid: 'ww708746402de33ba7' #企业ID |
|||
|
|||
workwechatschools: #测试 |
|||
agentid: 1000021 |
|||
secretstr: 'rbqos2un6vVY5k_c2aOFK6HUuONeJsiBqwRZXTDVBKU' |
|||
|
|||
workwechatappmaillists: #通讯录 |
|||
secretstr: 'TSSsJXiqh3RKl0NYIoB-sPc43MUIRJ1ppALWtzyLY94' |
|||
|
|||
healthreports: #健康上报 |
|||
secretstr: 'smjpGmFo5wp18BZGiLaECFr84Blv429v_GFdKp4_0YQ' |
|||
|
|||
privateConfig: #私人配置 |
|||
visit: 'http://docu.hxgk.net/uploadfileing/uploadimging' |
|||
# visit: 'http://docs.hxgk.group/uploadfileing/uploadimging' |
|||
appKey: 'heng_xin_gao_ke_AppKey' |
|||
Loading…
Reference in new issue