Browse Source

format: 格式化代码

liuyaqi 2 years ago
parent
commit
ecb50448a3

+ 1 - 1
opms_admin/app/dao/sys_dept.go

@@ -33,4 +33,4 @@ func NewSysDeptDao(tenant string) *SysDeptDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_dict_data.go

@@ -33,4 +33,4 @@ func NewSysDictDataDao(tenant string) *SysDictDataDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_dict_type.go

@@ -33,4 +33,4 @@ func NewSysDictTypeDao(tenant string) *SysDictTypeDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_login.go

@@ -33,4 +33,4 @@ func NewSysLoginDao(tenant string) *SysLoginDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_menu.go

@@ -33,4 +33,4 @@ func NewSysMenuDao(tenant string) *SysMenuDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_notice.go

@@ -33,4 +33,4 @@ func NewSysNoticeDao(tenant string) *SysNoticeDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_oper_log.go

@@ -33,4 +33,4 @@ func NewSysOperLogDao(tenant string) *SysOperLogDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_platform.go

@@ -33,4 +33,4 @@ func NewSysPlatformDao(tenant string) *SysPlatformDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_post.go

@@ -33,4 +33,4 @@ func NewSysPostDao(tenant string) *SysPostDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_role.go

@@ -33,4 +33,4 @@ func NewSysRoleDao(tenant string) *SysRoleDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_role_dept.go

@@ -33,4 +33,4 @@ func NewSysRoleDeptDao(tenant string) *SysRoleDeptDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_role_menu.go

@@ -33,4 +33,4 @@ func NewSysRoleMenuDao(tenant string) *SysRoleMenuDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_user_post.go

@@ -33,4 +33,4 @@ func NewSysUserPostDao(tenant string) *SysUserPostDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/dao/sys_user_role.go

@@ -33,4 +33,4 @@ func NewSysUserRoleDao(tenant string) *SysUserRoleDao {
 	}
 }
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/model/sys_notice.go

@@ -11,4 +11,4 @@ import (
 // SysNotice is the golang structure for table sys_notice.
 type SysNotice internal.SysNotice
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/model/sys_platform.go

@@ -11,4 +11,4 @@ import (
 // SysPlatform is the golang structure for table sys_platform.
 type SysPlatform internal.SysPlatform
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/model/sys_role_dept.go

@@ -11,4 +11,4 @@ import (
 // SysRoleDept is the golang structure for table sys_role_dept.
 type SysRoleDept internal.SysRoleDept
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/model/sys_role_menu.go

@@ -11,4 +11,4 @@ import (
 // SysRoleMenu is the golang structure for table sys_role_menu.
 type SysRoleMenu internal.SysRoleMenu
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 1 - 1
opms_admin/app/model/sys_user_post.go

@@ -11,4 +11,4 @@ import (
 // SysUserPost is the golang structure for table sys_user_post.
 type SysUserPost internal.SysUserPost
 
-// Fill with you ideas below.
+// Fill with you ideas below.

+ 2 - 2
opms_libary/plugin/dingtalk/calendar/calendar.go

@@ -44,12 +44,12 @@ func (c *Calendar) CreateSchedule(params *DingAddScheduleParams) (returnData *Cr
 		attendees = append(attendees, &att)
 	}
 	start := &EventStart{
-		Date: &params.BeginDate,
+		Date:     &params.BeginDate,
 		DateTime: &params.BeginTime,
 		TimeZone: &params.TimeZone,
 	}
 	end := &EventEnd{
-		Date: &params.EndDate,
+		Date:     &params.EndDate,
 		DateTime: &params.EndTime,
 		TimeZone: &params.TimeZone,
 	}

+ 1 - 1
opms_libary/plugin/dingtalk/calendar/entity.go

@@ -166,7 +166,7 @@ type GetEventResponse struct {
 	// 更新时间
 	UpdateTime *string `json:"updateTime,omitempty" xml:"updateTime,omitempty"`
 	// 是否是全天日程
-	IsAllDay *bool     `json:"isAllDay,omitempty" xml:"isAllDay,omitempty"`
+	IsAllDay *bool `json:"isAllDay,omitempty" xml:"isAllDay,omitempty"`
 }
 
 type GetScheduleResponse struct {

+ 1 - 1
opms_libary/plugin/dingtalk/jsapi/jsapi.go

@@ -33,7 +33,7 @@ func (s *Jsapi) Sign(jsTicket, nonceStr, url string, timeStamp int64) (string, e
 		return "", fmt.Errorf("decode url 异常 %s", err.Error())
 	}
 
-	plain := "jsapi_ticket=" + jsTicket + "&noncestr=" + nonceStr + "&timestamp=" + strconv.FormatInt(timeStamp, 10)+ "&url=" + url
+	plain := "jsapi_ticket=" + jsTicket + "&noncestr=" + nonceStr + "&timestamp=" + strconv.FormatInt(timeStamp, 10) + "&url=" + url
 	sum := sha1.Sum([]byte(plain))
 	return hex.EncodeToString(sum[:]), nil
 }

+ 3 - 3
opms_libary/plugin/dingtalk/message/message.go

@@ -38,9 +38,9 @@ type MixMessage struct {
 	ProcessCode       string `json:"processCode"`
 	Remark            string `json:"remark"`
 	// 日程变更
-	ChangeType        string   `json:"changeType"`
-	CalendarEventId   string   `json:"CalendarEventId"`
-	UnionIdList       []string `json:"processCode"`
+	ChangeType      string   `json:"changeType"`
+	CalendarEventId string   `json:"CalendarEventId"`
+	UnionIdList     []string `json:"processCode"`
 }
 
 //Reply 消息回复

+ 1 - 1
opms_libary/plugin/dingtalk/storage/storage.go

@@ -95,7 +95,7 @@ func (w *Storage) QueryFileUploadInfo(spaceId, unionId string) (response QueryFi
 }
 
 func (w *Storage) QueryFileDownloadInfo(spaceId, fileId, unionId string) (response QueryFileDownloadInfoResponse, err error) {
-	resp, err := w.HTTPPostJSONWithAccessToken(fmt.Sprintf(QueryFileDownloadInfoUrl, spaceId, fileId) + "?unionId=" + unionId, map[string]interface{}{})
+	resp, err := w.HTTPPostJSONWithAccessToken(fmt.Sprintf(QueryFileDownloadInfoUrl, spaceId, fileId)+"?unionId="+unionId, map[string]interface{}{})
 	err = json.Unmarshal(resp, &response)
 	return response, err
 

+ 2 - 2
opms_parent/app/model/cust/cust_customer_bid_record.go

@@ -28,13 +28,13 @@ type CustCustomerBidRecordListReq struct {
 }
 
 type CustCustomerBidRecordAddReq struct {
-	CustId        int         `json:"custId" v:"required#请输入关联客户"`           // 关联客户
+	CustId        int         `json:"custId" v:"required#请输入关联客户"`          // 关联客户
 	ProductName   string      `json:"productName" v:"required#请输入招标产品名称"`   // 招标产品名称
 	PublishedTime *gtime.Time `json:"publishedTime" v:"required#请输入发布招标日期"` // 发布招标日期
 	Budget        float64     `json:"budget"  v:"required#请输入项目预算"`         // 项目预算
 	Title         string      `json:"title"`                                // 招标信息标题
 	InfoType      string      `json:"infoType" v:"required#请输入信息分类"`        // 信息分类
-	Bidder        string      `json:"bidder"`          // 中标单位
+	Bidder        string      `json:"bidder"`                               // 中标单位
 	Remark        string      `json:"remark"`                               // 备注
 }
 

+ 15 - 15
opms_parent/app/model/sys_report/internal/sys_report.go

@@ -5,23 +5,23 @@
 package internal
 
 import (
-    "github.com/gogf/gf/os/gtime"
+	"github.com/gogf/gf/os/gtime"
 )
 
 // SysReport is the golang structure for table sys_report.
 type SysReport struct {
-    Id          int         `orm:"id,primary"   json:"id"`          // 主键
-    ReportType  string      `orm:"report_type"  json:"reportType"`  // 报表类型(10数值指标,20数据报表)
-    ReportIcon  string      `orm:"report_icon"  json:"reportIcon"`  // 报表图标
-    ReportCode  string      `orm:"report_code"  json:"reportCode"`  // 报表代码
-    ReportName  string      `orm:"report_name"  json:"reportName"`  // 报表名称
-    ReportDesc  string      `orm:"report_desc"  json:"reportDesc"`  // 报表描述
-    Remark      string      `orm:"remark"       json:"remark"`      // 备注
-    CreatedBy   int         `orm:"created_by"   json:"createdBy"`   // 创建者
-    CreatedName string      `orm:"created_name" json:"createdName"` // 创建人
-    CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
-    UpdatedBy   int         `orm:"updated_by"   json:"updatedBy"`   // 更新者
-    UpdatedName string      `orm:"updated_name" json:"updatedName"` // 更新人
-    UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
-    DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
+	Id          int         `orm:"id,primary"   json:"id"`          // 主键
+	ReportType  string      `orm:"report_type"  json:"reportType"`  // 报表类型(10数值指标,20数据报表)
+	ReportIcon  string      `orm:"report_icon"  json:"reportIcon"`  // 报表图标
+	ReportCode  string      `orm:"report_code"  json:"reportCode"`  // 报表代码
+	ReportName  string      `orm:"report_name"  json:"reportName"`  // 报表名称
+	ReportDesc  string      `orm:"report_desc"  json:"reportDesc"`  // 报表描述
+	Remark      string      `orm:"remark"       json:"remark"`      // 备注
+	CreatedBy   int         `orm:"created_by"   json:"createdBy"`   // 创建者
+	CreatedName string      `orm:"created_name" json:"createdName"` // 创建人
+	CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
+	UpdatedBy   int         `orm:"updated_by"   json:"updatedBy"`   // 更新者
+	UpdatedName string      `orm:"updated_name" json:"updatedName"` // 更新人
+	UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
+	DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
 }

+ 13 - 13
opms_parent/app/model/sys_report/internal/sys_role_report.go

@@ -5,20 +5,20 @@
 package internal
 
 import (
-    "github.com/gogf/gf/os/gtime"
+	"github.com/gogf/gf/os/gtime"
 )
 
 // SysRoleReport is the golang structure for table sys_role_report.
 type SysRoleReport struct {
-    Id          int         `orm:"id,primary"   json:"id"`          // 主键      
-    RoleId      int         `orm:"role_id"      json:"roleId"`      // 角色ID    
-    ReportId    int         `orm:"report_id"    json:"reportId"`    // 报表ID    
-    Remark      string      `orm:"remark"       json:"remark"`      // 备注      
-    CreatedBy   int         `orm:"created_by"   json:"createdBy"`   // 创建者    
-    CreatedName string      `orm:"created_name" json:"createdName"` // 创建人    
-    CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间  
-    UpdatedBy   int         `orm:"updated_by"   json:"updatedBy"`   // 更新者    
-    UpdatedName string      `orm:"updated_name" json:"updatedName"` // 更新人    
-    UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间  
-    DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间  
-}
+	Id          int         `orm:"id,primary"   json:"id"`          // 主键
+	RoleId      int         `orm:"role_id"      json:"roleId"`      // 角色ID
+	ReportId    int         `orm:"report_id"    json:"reportId"`    // 报表ID
+	Remark      string      `orm:"remark"       json:"remark"`      // 备注
+	CreatedBy   int         `orm:"created_by"   json:"createdBy"`   // 创建者
+	CreatedName string      `orm:"created_name" json:"createdName"` // 创建人
+	CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
+	UpdatedBy   int         `orm:"updated_by"   json:"updatedBy"`   // 更新者
+	UpdatedName string      `orm:"updated_name" json:"updatedName"` // 更新人
+	UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
+	DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
+}