瀏覽代碼

feature(结算): 代码格式

likai 4 年之前
父節點
當前提交
7a19d7a1a4
共有 3 個文件被更改,包括 7 次插入2 次删除
  1. 3 1
      handler/account.go
  2. 1 0
      model/account/base_account.go
  3. 3 1
      service/account/account.go

+ 3 - 1
handler/account.go

@@ -88,7 +88,9 @@ func (a *Account) CalculateAmount(ctx context.Context, req *account.CalculateAmo
 	rsp.Code = code
 	rsp.Msg = ""
 	return nil
-}// 通过从账户id,查询主账户 财务账号信息
+}
+
+// 通过从账户id,查询主账户 财务账号信息
 func (a *Account) GetBaseAccountById(ctx context.Context, req *account.SubAccountReq, rsp *comm_def.CommonMsg) error {
 	tenant, err := micro_srv.GetTenant(ctx)
 	if err != nil {

+ 1 - 0
model/account/base_account.go

@@ -43,6 +43,7 @@ type CalculateAmountReq struct {
 	SignInTime         *gtime.Time `json:"sign_in_time"`         // 签到时间
 	SignOutTime        *gtime.Time `json:"sign_out_time"`        // 签退时间
 }
+
 type SubAccountReq struct {
 	SubId     string `json:"subid"`
 }

+ 3 - 1
service/account/account.go

@@ -159,7 +159,9 @@ func (s AccountService) Calculate(req *account.CalculateAmountReq) error {
 	}
 
 	return tx.Commit()
-}// 通过从账户,查询主账户 财务账号信息
+}
+
+// 通过从账户,查询主账户 财务账号信息
 func (s AccountService) GetBaseAccountById(req *account.SubAccountReq) (infos account.BaseAccountRsp, err error) {
 	// 先判断是主用户还是从用户
 	infos.Total,err = s.Dao.DB.Model("master_user").Where(fmt.Sprintf("UserId='%v'", req.SubId)).Count()