|
|
|
@ -301,7 +301,7 @@ func (o logic) Reject(args CompanyRejectApply) error {
|
|
|
|
|
|
|
|
|
|
type CompanyInfo struct {
|
|
|
|
|
company.Info
|
|
|
|
|
UserID uint `json:"user_id"`
|
|
|
|
|
ManageUserID uint `json:"user_id"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o logic) Apply(args CompanyInfo) error {
|
|
|
|
@ -312,7 +312,7 @@ func (o logic) Apply(args CompanyInfo) error {
|
|
|
|
|
}
|
|
|
|
|
if err := tx.Create(&company.Log{
|
|
|
|
|
Text: "更新了信息",
|
|
|
|
|
UserID: args.UserID,
|
|
|
|
|
UserID: args.ManageUserID,
|
|
|
|
|
CreatedAt: formatime.NewSecondNow(),
|
|
|
|
|
CompanyID: args.ID,
|
|
|
|
|
}).Error; err != nil {
|
|
|
|
@ -341,7 +341,7 @@ func (o logic) Apply(args CompanyInfo) error {
|
|
|
|
|
}
|
|
|
|
|
if err := tx.Create(&company.Log{
|
|
|
|
|
Text: "发起了申请",
|
|
|
|
|
UserID: args.UserID,
|
|
|
|
|
UserID: args.ManageUserID,
|
|
|
|
|
CreatedAt: formatime.NewSecondNow(),
|
|
|
|
|
CompanyID: args.ID,
|
|
|
|
|
}).Error; err != nil {
|
|
|
|
|