فهرست منبع

feat:参数修改

zhangxinlei1996 3 سال پیش
والد
کامیت
f446cfe7b9
6فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 3 3
      api/internal/types/types.go
  2. 3 3
      api/userCenter.api
  3. 1 1
      entity/ent.go
  4. BIN
      rpc/rpc.exe
  5. 1 1
      rpc/userCenter.proto
  6. 1 1
      service/entService.go

+ 3 - 3
api/internal/types/types.go

@@ -68,12 +68,12 @@ type EntListData struct {
 
 type EntList struct {
 	Id               int64  `json:"id"`
-	ComPanyType      int64  `json:"companyType"`      // 机构性质    1企业   2党政机关事业单位及其他
+	ComPanyType      int64  `json:"comPanyType"`      // 机构性质    1企业   2党政机关事业单位及其他
 	Name             string `json:"name"`             //机构名称
 	OrganizationType int64  `json:"organizationType"` //机构类型  1企业   2党政机关事业单位及其他
-	Createtime       string `json:"createtime"`       //创建时间
+	Createtime       string `json:"createTime"`       //创建时间
 	ValidTime        string `json:"validTime"`        //有效截至日期
-	AuthStatus       int64  `json:"AuthStatus"`       //认证状态
+	AuthStatus       int64  `json:"authStatus"`       //认证状态
 	FrozenStatus     int64  `json:"frozenStatus"`     //冻结状态  1正常  0冻结
 }
 

+ 3 - 3
api/userCenter.api

@@ -73,12 +73,12 @@ type (
 
 	EntList {
 		Id               int64  `json:"id"`
-		ComPanyType      int64  `json:"companyType"`      // 机构性质    1企业   2党政机关事业单位及其他
+		ComPanyType      int64  `json:"comPanyType"`      // 机构性质    1企业   2党政机关事业单位及其他
 		Name             string `json:"name"`             //机构名称
 		OrganizationType int64  `json:"organizationType"` //机构类型  1企业   2党政机关事业单位及其他
-		Createtime       string `json:"createtime"`       //创建时间
+		Createtime       string `json:"createTime"`       //创建时间
 		ValidTime        string `json:"validTime"`        //有效截至日期
-		AuthStatus       int64  `json:"AuthStatus"`       //认证状态
+		AuthStatus       int64  `json:"authStatus"`       //认证状态
 		FrozenStatus     int64  `json:"frozenStatus"`     //冻结状态  1正常  0冻结
 	}
 

+ 1 - 1
entity/ent.go

@@ -345,7 +345,7 @@ func (this *List) GetSql() (selectSql, selectCountSql string) {
 	if this.AuthStatus != "" { //z1 已认证
 		sql += " auth_status =" + this.AuthStatus + " and"
 	} else {
-		sql += " auth_status is not null and auth_status !=0 and"
+		sql += " auth_status is not null and auth_status !=0 and auth_status !=-1 and"
 	}
 	if this.CreditCode != "" {
 		sql += " code like " + "'%" + this.CreditCode + "%' and"

BIN
rpc/rpc.exe


+ 1 - 1
rpc/userCenter.proto

@@ -86,7 +86,7 @@ message EntList {
 	string createtime =5;//创建时间
 	string validTime=6; //有效截至日期
 	int64 authStatus=7;//认证状态
-	int64 frozenStatus=8;//冻结状态  1正常  0冻结
+	int64 frozenStatus=8;//冻结状态 1冻结 0未冻结
 }
 
 //审核列表入参

+ 1 - 1
service/entService.go

@@ -169,7 +169,7 @@ func (this *EntService) EntList(data *userCenter.EntListReq) (int64, string, *us
 			ComPanyType:      common.Int64All(v["comPanyType"]),      // 机构性质    1企业   2党政机关事业单位及其他
 			Name:             common.ObjToString(v["name"]),          //机构名称
 			OrganizationType: common.Int64All(v["organizationType"]), //机构类型  1企业   2党政机关事业单位及其他
-			Createtime:       common.ObjToString(v["createtime"]),    //创建时间
+			Createtime:       common.ObjToString(v["createTime"]),    //创建时间
 			ValidTime:        common.ObjToString(v["validTime"]),     //有效截至日期
 			AuthStatus:       common.Int64All(v["authStatus"]),       //认证状态
 			FrozenStatus:     common.Int64All(v["frozenStatus"]),