Selaa lähdekoodia

feat:企业相关接口

zhangxinlei1996 3 vuotta sitten
vanhempi
commit
686670eaf3

+ 28 - 0
api/internal/handler/entinfohandler.go

@@ -0,0 +1,28 @@
+package handler
+
+import (
+	"net/http"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/logic"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func EntInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.CheckEntReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewEntInfoLogic(r.Context(), svcCtx)
+		resp, err := l.EntInfo(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 28 - 0
api/internal/handler/examineinfohandler.go

@@ -0,0 +1,28 @@
+package handler
+
+import (
+	"net/http"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/logic"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func ExamineInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ExamineInfoReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewExamineInfoLogic(r.Context(), svcCtx)
+		resp, err := l.ExamineInfo(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 15 - 0
api/internal/handler/routes.go

@@ -37,6 +37,21 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Path:    "/userCenter/ent/examineList",
 				Handler: ExamineListHandler(serverCtx),
 			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/userCenter/ent/info",
+				Handler: EntInfoHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/userCenter/ent/examineInfo",
+				Handler: ExamineInfoHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/userCenter/ent/update",
+				Handler: UpdateEntHandler(serverCtx),
+			},
 		},
 	)
 }

+ 28 - 0
api/internal/handler/updateenthandler.go

@@ -0,0 +1,28 @@
+package handler
+
+import (
+	"net/http"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/logic"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func UpdateEntHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.UpdateEntReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewUpdateEntLogic(r.Context(), svcCtx)
+		resp, err := l.UpdateEnt(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 0 - 1
api/internal/logic/checkentlogic.go

@@ -37,5 +37,4 @@ func (l *CheckEntLogic) CheckEnt(req *types.CheckEntReq) (resp *types.Resp, err
 		Error_msg:  res.ErrorMsg,
 		Data:       res.Data,
 	}, err
-	return
 }

+ 0 - 1
api/internal/logic/entauthlogic.go

@@ -45,5 +45,4 @@ func (l *EntAuthLogic) EntAuth(req *types.AuthEntReq) (resp *types.Resp, err err
 		Error_msg:  res.ErrorMsg,
 		Data:       res.Data,
 	}, err
-	return
 }

+ 53 - 0
api/internal/logic/entinfologic.go

@@ -0,0 +1,53 @@
+package logic
+
+import (
+	"context"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/entity"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type EntInfoLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+}
+
+func NewEntInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EntInfoLogic {
+	return &EntInfoLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+	}
+}
+
+func (l *EntInfoLogic) EntInfo(req *types.CheckEntReq) (resp *types.EntInfoResp, err error) {
+	// todo: add your logic here and delete this line
+	res, err := entity.UserCenterRpc.EntInfo(l.ctx, &pb.CheckEntReq{
+		EntId: req.EntId,
+	})
+	data := &types.EntInfo{
+		Name:             res.Data.Name,
+		OrganizationType: res.Data.OrganizationType,
+		CreditCode:       res.Data.CreditCode,
+		CompanyType:      res.Data.CompanyType,
+		AreaNumber:       res.Data.AreaNumber,
+		Business:         res.Data.Business,
+		OfficialLetter:   res.Data.OfficialLetter,
+		AuthStartTime:    res.Data.AuthStartTime,
+		AuthEndTime:      res.Data.AuthEndTime,
+		ForzenStatus:     res.Data.ForzenStatus,
+		AuthState:        res.Data.AuthState,
+		ContactPerson:    res.Data.ContactPerson,
+		ContactPhone:     res.Data.ContactPhone,
+	}
+	return &types.EntInfoResp{
+		Error_code: res.ErrorCode,
+		Error_msg:  res.ErrorMsg,
+		Data:       data,
+	}, err
+}

+ 54 - 0
api/internal/logic/examineinfologic.go

@@ -0,0 +1,54 @@
+package logic
+
+import (
+	"context"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/entity"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ExamineInfoLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+}
+
+func NewExamineInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ExamineInfoLogic {
+	return &ExamineInfoLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+	}
+}
+
+func (l *ExamineInfoLogic) ExamineInfo(req *types.ExamineInfoReq) (resp *types.ExamineInfoResp, err error) {
+	// todo: add your logic here and delete this line
+	res, err := entity.UserCenterRpc.ExamineInfo(l.ctx, &pb.CheckExamineReq{
+		ExamineId: req.ExamineId,
+	})
+	data := &types.ExamineInfo{
+		Name:             res.Data.Name,
+		OrganizationType: res.Data.OrganizationType,
+		CreditCode:       res.Data.CreditCode,
+		CompanyType:      res.Data.CompanyType,
+		AreaNumber:       res.Data.AreaNumber,
+		Business:         res.Data.Business,
+		OfficialLetter:   res.Data.OfficialLetter,
+		AuthState:        res.Data.AuthState,
+		ContactPerson:    res.Data.ContactPerson,
+		ContactPhone:     res.Data.ContactPhone,
+		RegPhone:         res.Data.RegPhone,
+		AuthTime:         res.Data.AuthTime,
+		AuthReason:       res.Data.AuthReason,
+		AuditUser:        res.Data.AuditUser,
+	}
+	return &types.ExamineInfoResp{
+		Error_code: res.ErrorCode,
+		Error_msg:  res.ErrorMsg,
+		Data:       data,
+	}, err
+}

+ 39 - 0
api/internal/logic/updateentlogic.go

@@ -0,0 +1,39 @@
+package logic
+
+import (
+	"context"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/entity"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type UpdateEntLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+}
+
+func NewUpdateEntLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateEntLogic {
+	return &UpdateEntLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+	}
+}
+
+func (l *UpdateEntLogic) UpdateEnt(req *types.UpdateEntReq) (resp *types.Resp, err error) {
+	// todo: add your logic here and delete this line
+	res, err := entity.UserCenterRpc.EntUpdate(l.ctx, &pb.EntUpdateReq{
+		EntId:      req.EntId,
+		UpdateType: req.UpdateType,
+	})
+	return &types.Resp{
+		Error_code: res.ErrorCode,
+		Error_msg:  res.ErrorMsg,
+		Data:       res.Data,
+	}, err
+}

+ 54 - 0
api/internal/types/types.go

@@ -110,3 +110,57 @@ type ExamineList struct {
 	ApplyTime   string `json:"applyTime"`   //申请时间戳
 	AuthType    int64  `json:"authType"`    //审核状态 1:待审核  2:审核通过 3:审核不通过
 }
+
+type EntInfoResp struct {
+	Error_code int64    `json:"error_code"`
+	Error_msg  string   `json:"error_msg"`
+	Data       *EntInfo `json:"data"`
+}
+
+type EntInfo struct {
+	Name             string `json:"name"`
+	OrganizationType int64  `json:"organizationType"`
+	CreditCode       string `json:"creditCode"`
+	CompanyType      int64  `json:"companyType"`
+	AreaNumber       string `json:"areaNumber"`
+	Business         string `json:"business"`
+	OfficialLetter   string `json:"officialLetter"`
+	AuthStartTime    string `json:"createTime"`
+	AuthEndTime      string `json:"validTime"`
+	ForzenStatus     int64  `json:"forzenStatus"`
+	AuthState        int64  `json:"authStatus"`
+	ContactPerson    string `json:"contactPerson"`
+	ContactPhone     string `json:"contactPhone"`
+}
+
+type ExamineInfoReq struct {
+	ExamineId int64 `form:"examineId"`
+}
+
+type ExamineInfoResp struct {
+	Error_code int64        `json:"error_code"`
+	Error_msg  string       `json:"error_msg"`
+	Data       *ExamineInfo `json:"data"`
+}
+
+type ExamineInfo struct {
+	Name             string `json:"name"`
+	OrganizationType int64  `json:"organizationType"`
+	CreditCode       string `json:"creditCode"`
+	CompanyType      int64  `json:"companyType"`
+	AreaNumber       string `json:"areaNumber"`
+	Business         string `json:"business"`
+	OfficialLetter   string `json:"officialLetter"`
+	AuthState        int64  `json:"authStatus"`
+	ContactPerson    string `json:"contactPerson"`
+	ContactPhone     string `json:"contactPhone"`
+	RegPhone         string `json:"regPhone"`
+	AuthTime         string `json:"authTime"`
+	AuthReason       string `json:"authReason"`
+	AuditUser        string `json:"auditUser"`
+}
+
+type UpdateEntReq struct {
+	EntId      int64 `form:"entId"`      //企业id
+	UpdateType int64 `form:"updateType"` //1-冻结  2-解冻
+}

+ 64 - 0
api/userCenter.api

@@ -117,6 +117,64 @@ type (
 		ApplyTime   string `json:"applyTime"`   //申请时间戳
 		AuthType    int64  `json:"authType"`    //审核状态 1:待审核  2:审核通过 3:审核不通过
 	}
+
+	//企业信息出参
+	EntInfoResp {
+		Error_code int64    `json:"error_code"`
+		Error_msg  string   `json:"error_msg"`
+		Data       *EntInfo `json:"data"`
+	}
+
+	EntInfo {
+		Name             string `json:"name"`
+		OrganizationType int64  `json:"organizationType"`
+		CreditCode       string `json:"creditCode"`
+		CompanyType      int64  `json:"companyType"`
+		AreaNumber       string `json:"areaNumber"`
+		Business         string `json:"business"`
+		OfficialLetter   string `json:"officialLetter"`
+		AuthStartTime    string `json:"createTime"`
+		AuthEndTime      string `json:"validTime"`
+		ForzenStatus     int64  `json:"forzenStatus"`
+		AuthState        int64  `json:"authStatus"`
+		ContactPerson    string `json:"contactPerson"`
+		ContactPhone     string `json:"contactPhone"`
+	}
+
+	//审核入参
+	ExamineInfoReq {
+		ExamineId int64 `form:"examineId"`
+	}
+
+	//审核详情出参
+	ExamineInfoResp {
+		Error_code int64        `json:"error_code"`
+		Error_msg  string       `json:"error_msg"`
+		Data       *ExamineInfo `json:"data"`
+	}
+
+	ExamineInfo {
+		Name             string `json:"name"`
+		OrganizationType int64  `json:"organizationType"`
+		CreditCode       string `json:"creditCode"`
+		CompanyType      int64  `json:"companyType"`
+		AreaNumber       string `json:"areaNumber"`
+		Business         string `json:"business"`
+		OfficialLetter   string `json:"officialLetter"`
+		AuthState        int64  `json:"authStatus"`
+		ContactPerson    string `json:"contactPerson"`
+		ContactPhone     string `json:"contactPhone"`
+		RegPhone         string `json:"regPhone"`
+		AuthTime         string `json:"authTime"`
+		AuthReason       string `json:"authReason"`
+		AuditUser        string `json:"auditUser"`
+	}
+
+	//冻结解冻入参
+	UpdateEntReq {
+		EntId      int64 `form:"entId"`      //企业id
+		UpdateType int64 `form:"updateType"` //1-冻结  2-解冻
+	}
 )
 
 service userCenter-api {
@@ -130,4 +188,10 @@ service userCenter-api {
 	post /userCenter/ent/list (entListReq)returns (entListResp)
 	@handler ExamineList
 	post /userCenter/ent/examineList(ExamineListReq) returns (ExamineListResp)
+	@handler EntInfo
+	post /userCenter/ent/info (checkEntReq)returns(EntInfoResp)
+	@handler ExamineInfo
+	post /userCenter/ent/examineInfo(ExamineInfoReq) returns(ExamineInfoResp)
+	@handler UpdateEnt
+	post /userCenter/ent/update(UpdateEntReq)returns(resp)
 }

+ 99 - 0
entity/ent.go

@@ -102,6 +102,9 @@ const (
 
 	Date_Full_Layout  = "2006-01-02 15:04:05"
 	Date_Short_Layout = "2006-01-02"
+
+	//信息发布产品code
+	GOODSCODE = "xxfb_gyxx"
 )
 
 //创建企业
@@ -293,6 +296,7 @@ func (this *Examine) EntExamine() bool {
 		m["auth_status"] = 1
 		m["auth_startTime"] = now.Format(Date_Full_Layout)
 		m["auth_endTime"] = end.AddDate(1, 0, 0).Format(Date_Full_Layout)
+
 	}
 	return this.Mysql.ExecTx("更新企业", func(tx *sql.Tx) bool {
 		ok_1 := this.Mysql.UpdateByTx(tx, Entniche_info, map[string]interface{}{
@@ -478,6 +482,101 @@ func (this *CheckEnt) Check() (authStatus, frozenStatus int64, msg string) {
 	return
 }
 
+type EntInfoData struct {
+	Name             string //名称
+	AreaNumber       string //区域代码
+	ContactPerson    string //联系人
+	ContactPhone     string //联系电话
+	AuthState        int64  //0未认证 1已认证
+	Industry         string //行业
+	CompanyType      int64  //1-事业单位 0-企业
+	CreditCode       string //统一社会信用代码
+	Business         string //营业执照
+	OfficialLetter   string //认证公函
+	OrganizationType int64  //机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他
+	AuthType         int64  //1待审核 2审核通过 3审核不通过
+	ForzenStatus     int64  //1冻结 0未冻结
+	AuditUser        string //审核人
+	AuditTime        string //审核时间
+	CreateTime       string //创建时间
+	AuthStartTime    string //认证开始时间
+	AuthEndTime      string //认证截止时间
+	AuthReason       string //审核原因
+	AuthTime         string //申请时间
+	RegPhone         string //注册人手机号
+}
+
+func (this *CheckEnt) Info() *EntInfoData {
+	r := this.Mysql.SelectBySql(`select * from entniche_info where id =?`, this.EntId)
+	info := EntInfoData{}
+	if r != nil && len(*r) > 0 {
+		data := (*r)[0]
+		info.OrganizationType = common.Int64All(data["organization_type"])
+		info.CreditCode = common.ObjToString(data["code"])
+		info.Name = common.ObjToString(data["name"])
+		info.CompanyType = common.Int64All(data["auth_type"])
+		info.AreaNumber = common.ObjToString(data["area_number"])
+		info.Business = common.ObjToString(data["license"])
+		info.OfficialLetter = common.ObjToString(data["official_letter"])
+		info.AuthStartTime = common.ObjToString(data["auth_startTime"]) //创建时间 即为认证通过时间
+		info.AuthEndTime = common.ObjToString(data["auth_endTime"])     //有效截止日期
+		info.ForzenStatus = common.Int64All(data["frozen_status"])
+		info.AuthState = common.Int64All(data["auth_status"])
+		info.ContactPerson = common.ObjToString(data["linkman_name"])
+		info.ContactPhone = common.ObjToString(data["linkman_phone"])
+	}
+	return &info
+}
+
+type UpdateEnt struct {
+	EntId      int64
+	UpdateType int64
+	Mysql      *mysql.Mysql
+}
+
+//冻结解冻用户 1-冻结  2-解冻
+func (this *UpdateEnt) UpdateEnt() (int64, string) {
+	if this.UpdateType == 2 {
+		this.UpdateType = 0
+	}
+	log.Println("-=========================")
+	if this.Mysql.UpdateOrDeleteBySql(`update entniche_info set frozen_status=? where id =?`, this.UpdateType, this.EntId) > -1 {
+		//修改成功
+		//TODO 调用信息中台rpc服务
+
+		return 1, ""
+	}
+	return -1, "失败"
+}
+
+type ExamineInfo struct {
+	ExamineId int64
+	Mysql     *mysql.Mysql
+}
+
+func (this *ExamineInfo) Info() *EntInfoData {
+	r := this.Mysql.SelectBySql(`select * from auth_record where id =?`, this.ExamineId)
+	info := EntInfoData{}
+	if r != nil && len(*r) > 0 {
+		data := (*r)[0]
+		info.OrganizationType = common.Int64All(data["organizationType"])
+		info.CreditCode = common.ObjToString(data["creditCode"])
+		info.Name = common.ObjToString(data["name"])
+		info.CompanyType = common.Int64All(data["comPanyType"])
+		info.AreaNumber = common.ObjToString(data["areaNumber"])
+		info.Business = common.ObjToString(data["business"])
+		info.OfficialLetter = common.ObjToString(data["officialLetter"])
+		info.ContactPerson = common.ObjToString(data["authName"])
+		info.ContactPhone = common.ObjToString(data["authPhone"])
+		info.RegPhone = common.ObjToString(data["regPhone"])
+		info.AuthTime = common.ObjToString(data["authTime"])
+		info.AuthState = common.Int64All(data["authStatus"])
+		info.AuthReason = common.ObjToString(data["authReason"])
+		info.AuditUser = common.ObjToString(data["auditUser"])
+	}
+	return &info
+}
+
 //时间戳转换
 func TimeFormat(timestamp, format string) string {
 	i_timestamp, _ := strconv.Atoi(timestamp)

+ 2 - 1
go.mod

@@ -3,7 +3,8 @@ module bp.jydev.jianyu360.cn/BaseService/userCenter
 go 1.16
 
 require (
-	app.yhyue.com/moapp/jybase v0.0.0-20220415064050-37ce64b3e2d4
+	app.yhyue.com/moapp/jybase v0.0.0-20220418104200-46c3fff161c7
+	bp.jydev.jianyu360.cn/BaseService/resourceCenter v0.0.0-20220419023723-0b32d4a41751
 	github.com/zeromicro/go-zero v1.3.2
 	google.golang.org/grpc v1.45.0
 	google.golang.org/protobuf v1.28.0

+ 4 - 2
go.sum

@@ -1,6 +1,8 @@
 app.yhyue.com/moapp/esv1 v0.0.0-20220414031211-3da4123e648d/go.mod h1:91/lSD/hS+ckMVP3WdidRzDhC60lLMdyce9QHy0cSMA=
-app.yhyue.com/moapp/jybase v0.0.0-20220415064050-37ce64b3e2d4 h1:da6H5iMYf7aQ2CtO5pXSN9hDul1w1CvkjnsDgh9S3+o=
-app.yhyue.com/moapp/jybase v0.0.0-20220415064050-37ce64b3e2d4/go.mod h1:qNRA0sHuYqcLoYoP8irpaWnW9YsXixe6obBIkwaXpD0=
+app.yhyue.com/moapp/jybase v0.0.0-20220418104200-46c3fff161c7 h1:LqxpxJvesxVSlXW+kgRntHd35wkw490TaKQXcLbDJfw=
+app.yhyue.com/moapp/jybase v0.0.0-20220418104200-46c3fff161c7/go.mod h1:qNRA0sHuYqcLoYoP8irpaWnW9YsXixe6obBIkwaXpD0=
+bp.jydev.jianyu360.cn/BaseService/resourceCenter v0.0.0-20220419023723-0b32d4a41751 h1:7TGTkXj1aGlU1Q1QuVIUxTQSChOiFIe6KkMQIoJA4EE=
+bp.jydev.jianyu360.cn/BaseService/resourceCenter v0.0.0-20220419023723-0b32d4a41751/go.mod h1:6KL5LMEku83uRbre0W/bj5kXG2I6pJGBFtktmtp51yM=
 cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
 cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
 cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=

+ 5 - 0
rpc/etc/usercenter.yaml

@@ -10,6 +10,11 @@ FileSystemConf:
       - 127.0.0.1:2379
     Key: usercenter.rpc
 CalleeId: usercenter.rpc
+ResourceEtcd:
+  Etcd:
+    Hosts:
+      - 127.0.0.1:2379
+    Key: resource.rpc
 Node: 1
 Mysql:
   dbName: jianyu  

+ 5 - 4
rpc/internal/config/config.go

@@ -7,10 +7,11 @@ import (
 
 type Config struct {
 	zrpc.RpcServerConf
-	Node           int    // 节点
-	CalleeId       string // 服务名字
-	FileSystemConf zrpc.RpcClientConf
-	Mysql          Mysql
+	Node             int    // 节点
+	CalleeId         string // 服务名字
+	FileSystemConf   zrpc.RpcClientConf
+	Mysql            Mysql
+	ResourceEtcdConf zrpc.RpcClientConf //资源中台
 }
 
 var (

+ 35 - 0
rpc/internal/logic/entinfologic.go

@@ -0,0 +1,35 @@
+package logic
+
+import (
+	"context"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type EntInfoLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewEntInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EntInfoLogic {
+	return &EntInfoLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+// 查看企业详情
+func (l *EntInfoLogic) EntInfo(in *pb.CheckEntReq) (*pb.EntInfoResp, error) {
+	// todo: add your logic here and delete this line
+	status, msg, data := Entservice.Info(in)
+	return &pb.EntInfoResp{
+		ErrorCode: status,
+		ErrorMsg:  msg,
+		Data:      data,
+	}, nil
+}

+ 37 - 0
rpc/internal/logic/entupdatelogic.go

@@ -0,0 +1,37 @@
+package logic
+
+import (
+	"context"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type EntUpdateLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewEntUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EntUpdateLogic {
+	return &EntUpdateLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+// 修改企业状态
+func (l *EntUpdateLogic) EntUpdate(in *pb.EntUpdateReq) (*pb.ExamineResp, error) {
+	// todo: add your logic here and delete this line
+	code, msg, status := Entservice.UpdateEnt(in)
+	return &pb.ExamineResp{
+		ErrorCode: code,
+		ErrorMsg:  msg,
+		Data: &pb.ExamineResp_ExamineData{
+			Status: status,
+		},
+	}, nil
+}

+ 35 - 0
rpc/internal/logic/examineinfologic.go

@@ -0,0 +1,35 @@
+package logic
+
+import (
+	"context"
+
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ExamineInfoLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewExamineInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ExamineInfoLogic {
+	return &ExamineInfoLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+// 查看审核详情
+func (l *ExamineInfoLogic) ExamineInfo(in *pb.CheckExamineReq) (*pb.EntInfoResp, error) {
+	// todo: add your logic here and delete this line
+	code, msg, data := Entservice.ExamineInfo(in)
+	return &pb.EntInfoResp{
+		ErrorCode: code,
+		ErrorMsg:  msg,
+		Data:      data,
+	}, nil
+}

+ 18 - 0
rpc/internal/server/usercenterserver.go

@@ -51,3 +51,21 @@ func (s *UserCenterServer) CheckEnt(ctx context.Context, in *pb.CheckEntReq) (*p
 	l := logic.NewCheckEntLogic(ctx, s.svcCtx)
 	return l.CheckEnt(in)
 }
+
+// 查看企业详情
+func (s *UserCenterServer) EntInfo(ctx context.Context, in *pb.CheckEntReq) (*pb.EntInfoResp, error) {
+	l := logic.NewEntInfoLogic(ctx, s.svcCtx)
+	return l.EntInfo(in)
+}
+
+//  冻结/解冻企业
+func (s *UserCenterServer) EntUpdate(ctx context.Context, in *pb.EntUpdateReq) (*pb.ExamineResp, error) {
+	l := logic.NewEntUpdateLogic(ctx, s.svcCtx)
+	return l.EntUpdate(in)
+}
+
+// 查看审核详情
+func (s *UserCenterServer) ExamineInfo(ctx context.Context, in *pb.CheckExamineReq) (*pb.EntInfoResp, error) {
+	l := logic.NewExamineInfoLogic(ctx, s.svcCtx)
+	return l.ExamineInfo(in)
+}

+ 550 - 42
rpc/pb/userCenter.pb.go

@@ -1216,6 +1216,387 @@ func (x *CheckEntResp) GetData() *CheckEntRespCheckData {
 	return nil
 }
 
+type EntInfoResp struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	ErrorCode int64        `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
+	ErrorMsg  string       `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
+	Data      *EntInfoData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //列表
+}
+
+func (x *EntInfoResp) Reset() {
+	*x = EntInfoResp{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_userCenter_proto_msgTypes[15]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *EntInfoResp) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EntInfoResp) ProtoMessage() {}
+
+func (x *EntInfoResp) ProtoReflect() protoreflect.Message {
+	mi := &file_userCenter_proto_msgTypes[15]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use EntInfoResp.ProtoReflect.Descriptor instead.
+func (*EntInfoResp) Descriptor() ([]byte, []int) {
+	return file_userCenter_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *EntInfoResp) GetErrorCode() int64 {
+	if x != nil {
+		return x.ErrorCode
+	}
+	return 0
+}
+
+func (x *EntInfoResp) GetErrorMsg() string {
+	if x != nil {
+		return x.ErrorMsg
+	}
+	return ""
+}
+
+func (x *EntInfoResp) GetData() *EntInfoData {
+	if x != nil {
+		return x.Data
+	}
+	return nil
+}
+
+type EntInfoData struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Name             string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                           //名称
+	AreaNumber       string `protobuf:"bytes,2,opt,name=areaNumber,proto3" json:"areaNumber,omitempty"`               //区域代码
+	ContactPerson    string `protobuf:"bytes,3,opt,name=contactPerson,proto3" json:"contactPerson,omitempty"`         //联系人
+	ContactPhone     string `protobuf:"bytes,4,opt,name=contactPhone,proto3" json:"contactPhone,omitempty"`           //联系电话
+	AuthState        int64  `protobuf:"varint,5,opt,name=authState,proto3" json:"authState,omitempty"`                //0未认证 1已认证
+	Industry         string `protobuf:"bytes,6,opt,name=industry,proto3" json:"industry,omitempty"`                   //行业
+	CompanyType      int64  `protobuf:"varint,7,opt,name=companyType,proto3" json:"companyType,omitempty"`            //1-事业单位 0-企业
+	CreditCode       string `protobuf:"bytes,8,opt,name=creditCode,proto3" json:"creditCode,omitempty"`               //统一社会信用代码
+	LegalPerson      string `protobuf:"bytes,9,opt,name=legalPerson,proto3" json:"legalPerson,omitempty"`             //法人姓名
+	Business         string `protobuf:"bytes,10,opt,name=business,proto3" json:"business,omitempty"`                  //营业执照
+	OfficialLetter   string `protobuf:"bytes,11,opt,name=officialLetter,proto3" json:"officialLetter,omitempty"`      //认证公函
+	OrganizationType int64  `protobuf:"varint,12,opt,name=organizationType,proto3" json:"organizationType,omitempty"` //1企业 2党政机关事业单位及其他
+	AuthType         int64  `protobuf:"varint,13,opt,name=authType,proto3" json:"authType,omitempty"`                 //1待审核 2审核通过 3审核不通过
+	ForzenStatus     int64  `protobuf:"varint,14,opt,name=forzenStatus,proto3" json:"forzenStatus,omitempty"`         //1冻结 0未冻结
+	AuditUser        string `protobuf:"bytes,15,opt,name=auditUser,proto3" json:"auditUser,omitempty"`                //审核人
+	AuditTime        string `protobuf:"bytes,16,opt,name=auditTime,proto3" json:"auditTime,omitempty"`                //审核时间
+	CreateTime       string `protobuf:"bytes,17,opt,name=createTime,proto3" json:"createTime,omitempty"`              //创建时间
+	AuthStartTime    string `protobuf:"bytes,18,opt,name=authStartTime,proto3" json:"authStartTime,omitempty"`        //认证开始时间
+	AuthEndTime      string `protobuf:"bytes,19,opt,name=authEndTime,proto3" json:"authEndTime,omitempty"`            //认证截止时间
+	AuthReason       string `protobuf:"bytes,20,opt,name=authReason,proto3" json:"authReason,omitempty"`              //审核原因
+	AuthTime         string `protobuf:"bytes,21,opt,name=authTime,proto3" json:"authTime,omitempty"`                  //申请时间
+	RegPhone         string `protobuf:"bytes,22,opt,name=regPhone,proto3" json:"regPhone,omitempty"`                  //注册人手机号
+}
+
+func (x *EntInfoData) Reset() {
+	*x = EntInfoData{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_userCenter_proto_msgTypes[16]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *EntInfoData) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EntInfoData) ProtoMessage() {}
+
+func (x *EntInfoData) ProtoReflect() protoreflect.Message {
+	mi := &file_userCenter_proto_msgTypes[16]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use EntInfoData.ProtoReflect.Descriptor instead.
+func (*EntInfoData) Descriptor() ([]byte, []int) {
+	return file_userCenter_proto_rawDescGZIP(), []int{16}
+}
+
+func (x *EntInfoData) GetName() string {
+	if x != nil {
+		return x.Name
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAreaNumber() string {
+	if x != nil {
+		return x.AreaNumber
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetContactPerson() string {
+	if x != nil {
+		return x.ContactPerson
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetContactPhone() string {
+	if x != nil {
+		return x.ContactPhone
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAuthState() int64 {
+	if x != nil {
+		return x.AuthState
+	}
+	return 0
+}
+
+func (x *EntInfoData) GetIndustry() string {
+	if x != nil {
+		return x.Industry
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetCompanyType() int64 {
+	if x != nil {
+		return x.CompanyType
+	}
+	return 0
+}
+
+func (x *EntInfoData) GetCreditCode() string {
+	if x != nil {
+		return x.CreditCode
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetLegalPerson() string {
+	if x != nil {
+		return x.LegalPerson
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetBusiness() string {
+	if x != nil {
+		return x.Business
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetOfficialLetter() string {
+	if x != nil {
+		return x.OfficialLetter
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetOrganizationType() int64 {
+	if x != nil {
+		return x.OrganizationType
+	}
+	return 0
+}
+
+func (x *EntInfoData) GetAuthType() int64 {
+	if x != nil {
+		return x.AuthType
+	}
+	return 0
+}
+
+func (x *EntInfoData) GetForzenStatus() int64 {
+	if x != nil {
+		return x.ForzenStatus
+	}
+	return 0
+}
+
+func (x *EntInfoData) GetAuditUser() string {
+	if x != nil {
+		return x.AuditUser
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAuditTime() string {
+	if x != nil {
+		return x.AuditTime
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetCreateTime() string {
+	if x != nil {
+		return x.CreateTime
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAuthStartTime() string {
+	if x != nil {
+		return x.AuthStartTime
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAuthEndTime() string {
+	if x != nil {
+		return x.AuthEndTime
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAuthReason() string {
+	if x != nil {
+		return x.AuthReason
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetAuthTime() string {
+	if x != nil {
+		return x.AuthTime
+	}
+	return ""
+}
+
+func (x *EntInfoData) GetRegPhone() string {
+	if x != nil {
+		return x.RegPhone
+	}
+	return ""
+}
+
+type EntUpdateReq struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	EntId      int64 `protobuf:"varint,1,opt,name=entId,proto3" json:"entId,omitempty"`           //企业id
+	UpdateType int64 `protobuf:"varint,2,opt,name=updateType,proto3" json:"updateType,omitempty"` //1-冻结  2-解冻
+}
+
+func (x *EntUpdateReq) Reset() {
+	*x = EntUpdateReq{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_userCenter_proto_msgTypes[17]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *EntUpdateReq) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EntUpdateReq) ProtoMessage() {}
+
+func (x *EntUpdateReq) ProtoReflect() protoreflect.Message {
+	mi := &file_userCenter_proto_msgTypes[17]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use EntUpdateReq.ProtoReflect.Descriptor instead.
+func (*EntUpdateReq) Descriptor() ([]byte, []int) {
+	return file_userCenter_proto_rawDescGZIP(), []int{17}
+}
+
+func (x *EntUpdateReq) GetEntId() int64 {
+	if x != nil {
+		return x.EntId
+	}
+	return 0
+}
+
+func (x *EntUpdateReq) GetUpdateType() int64 {
+	if x != nil {
+		return x.UpdateType
+	}
+	return 0
+}
+
+//审核详情入参
+type CheckExamineReq struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	ExamineId int64 `protobuf:"varint,1,opt,name=examineId,proto3" json:"examineId,omitempty"` //审核id
+}
+
+func (x *CheckExamineReq) Reset() {
+	*x = CheckExamineReq{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_userCenter_proto_msgTypes[18]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *CheckExamineReq) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CheckExamineReq) ProtoMessage() {}
+
+func (x *CheckExamineReq) ProtoReflect() protoreflect.Message {
+	mi := &file_userCenter_proto_msgTypes[18]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use CheckExamineReq.ProtoReflect.Descriptor instead.
+func (*CheckExamineReq) Descriptor() ([]byte, []int) {
+	return file_userCenter_proto_rawDescGZIP(), []int{18}
+}
+
+func (x *CheckExamineReq) GetExamineId() int64 {
+	if x != nil {
+		return x.ExamineId
+	}
+	return 0
+}
+
 type ExamineResp_ExamineData struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -1227,7 +1608,7 @@ type ExamineResp_ExamineData struct {
 func (x *ExamineResp_ExamineData) Reset() {
 	*x = ExamineResp_ExamineData{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_userCenter_proto_msgTypes[15]
+		mi := &file_userCenter_proto_msgTypes[19]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -1240,7 +1621,7 @@ func (x *ExamineResp_ExamineData) String() string {
 func (*ExamineResp_ExamineData) ProtoMessage() {}
 
 func (x *ExamineResp_ExamineData) ProtoReflect() protoreflect.Message {
-	mi := &file_userCenter_proto_msgTypes[15]
+	mi := &file_userCenter_proto_msgTypes[19]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1275,7 +1656,7 @@ type CheckEntRespCheckData struct {
 func (x *CheckEntRespCheckData) Reset() {
 	*x = CheckEntRespCheckData{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_userCenter_proto_msgTypes[16]
+		mi := &file_userCenter_proto_msgTypes[20]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -1288,7 +1669,7 @@ func (x *CheckEntRespCheckData) String() string {
 func (*CheckEntRespCheckData) ProtoMessage() {}
 
 func (x *CheckEntRespCheckData) ProtoReflect() protoreflect.Message {
-	mi := &file_userCenter_proto_msgTypes[16]
+	mi := &file_userCenter_proto_msgTypes[20]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1484,22 +1865,90 @@ var file_userCenter_proto_rawDesc = []byte{
 	0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
 	0x0a, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x66,
 	0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x03, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32,
-	0xdc, 0x01, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x24,
-	0x0a, 0x07, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0b, 0x2e, 0x45, 0x6e, 0x74, 0x41,
-	0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68,
-	0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x0a, 0x45, 0x6e, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x69,
-	0x6e, 0x65, 0x12, 0x0b, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a,
-	0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a,
-	0x07, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0b, 0x2e, 0x45, 0x6e, 0x74, 0x4c, 0x69,
-	0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69,
-	0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74,
-	0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73,
-	0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e,
-	0x74, 0x12, 0x0c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a,
-	0x0d, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06,
-	0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x03, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22,
+	0x6b, 0x0a, 0x0b, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d,
+	0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a,
+	0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61,
+	0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x49, 0x6e,
+	0x66, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xd5, 0x05, 0x0a,
+	0x0b, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
+	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+	0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x72, 0x65, 0x61, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x65, 0x61, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
+	0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f,
+	0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74,
+	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63,
+	0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f,
+	0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75,
+	0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61,
+	0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x64, 0x75,
+	0x73, 0x74, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x64, 0x75,
+	0x73, 0x74, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x54,
+	0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61,
+	0x6e, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74,
+	0x43, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64,
+	0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6c, 0x65, 0x67, 0x61, 0x6c, 0x50,
+	0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x65, 0x67,
+	0x61, 0x6c, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x75, 0x73, 0x69,
+	0x6e, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x75, 0x73, 0x69,
+	0x6e, 0x65, 0x73, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69, 0x61, 0x6c,
+	0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x66,
+	0x66, 0x69, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10,
+	0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65,
+	0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
+	0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68,
+	0x54, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68,
+	0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x7a, 0x65, 0x6e, 0x53, 0x74,
+	0x61, 0x74, 0x75, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x66, 0x6f, 0x72, 0x7a,
+	0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x64, 0x69,
+	0x74, 0x55, 0x73, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x64,
+	0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x64, 0x69, 0x74, 0x54,
+	0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x64, 0x69, 0x74,
+	0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69,
+	0x6d, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
+	0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x61, 0x72,
+	0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, 0x74,
+	0x68, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x75,
+	0x74, 0x68, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x0b, 0x61, 0x75, 0x74, 0x68, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a,
+	0x61, 0x75, 0x74, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
+	0x61, 0x75, 0x74, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
+	0x61, 0x75, 0x74, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x67, 0x50,
+	0x68, 0x6f, 0x6e, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x50,
+	0x68, 0x6f, 0x6e, 0x65, 0x22, 0x44, 0x0a, 0x0c, 0x45, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74,
+	0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x70,
+	0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a,
+	0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x2f, 0x0a, 0x0f, 0x43, 0x68,
+	0x65, 0x63, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a,
+	0x09, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
+	0x52, 0x09, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x32, 0xdc, 0x02, 0x0a, 0x0a,
+	0x55, 0x73, 0x65, 0x72, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x07, 0x45, 0x6e,
+	0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0b, 0x2e, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x52,
+	0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70,
+	0x12, 0x27, 0x0a, 0x0a, 0x45, 0x6e, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x12, 0x0b,
+	0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78,
+	0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x07, 0x45, 0x6e, 0x74,
+	0x4c, 0x69, 0x73, 0x74, 0x12, 0x0b, 0x2e, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
+	0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
+	0x30, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f,
+	0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a,
+	0x10, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
+	0x70, 0x12, 0x27, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x12, 0x0c, 0x2e,
+	0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, 0x43, 0x68,
+	0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x07, 0x45, 0x6e,
+	0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74,
+	0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73,
+	0x70, 0x12, 0x28, 0x0a, 0x09, 0x45, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x0d,
+	0x2e, 0x45, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e,
+	0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x0b, 0x45,
+	0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x2e, 0x43, 0x68, 0x65,
+	0x63, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45,
+	0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
+	0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1514,7 +1963,7 @@ func file_userCenter_proto_rawDescGZIP() []byte {
 	return file_userCenter_proto_rawDescData
 }
 
-var file_userCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
+var file_userCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
 var file_userCenter_proto_goTypes = []interface{}{
 	(*EntAuthReq)(nil),              // 0: EntAuthReq
 	(*EntAuthResp)(nil),             // 1: EntAuthResp
@@ -1531,32 +1980,43 @@ var file_userCenter_proto_goTypes = []interface{}{
 	(*ExamineList)(nil),             // 12: ExamineList
 	(*CheckEntReq)(nil),             // 13: CheckEntReq
 	(*CheckEntResp)(nil),            // 14: CheckEntResp
-	(*ExamineResp_ExamineData)(nil), // 15: ExamineResp.ExamineData
-	(*CheckEntRespCheckData)(nil),   // 16: CheckEntResp.checkData
+	(*EntInfoResp)(nil),             // 15: EntInfoResp
+	(*EntInfoData)(nil),             // 16: EntInfoData
+	(*EntUpdateReq)(nil),            // 17: EntUpdateReq
+	(*CheckExamineReq)(nil),         // 18: CheckExamineReq
+	(*ExamineResp_ExamineData)(nil), // 19: ExamineResp.ExamineData
+	(*CheckEntRespCheckData)(nil),   // 20: CheckEntResp.checkData
 }
 var file_userCenter_proto_depIdxs = []int32{
 	2,  // 0: EntAuthResp.data:type_name -> EntAuthData
-	15, // 1: ExamineResp.data:type_name -> ExamineResp.ExamineData
+	19, // 1: ExamineResp.data:type_name -> ExamineResp.ExamineData
 	7,  // 2: EntListResp.data:type_name -> EntData
 	8,  // 3: EntData.list:type_name -> EntList
 	11, // 4: ExamineListResp.data:type_name -> ExamineListData
 	12, // 5: ExamineListData.list:type_name -> ExamineList
-	16, // 6: CheckEntResp.data:type_name -> CheckEntResp.checkData
-	0,  // 7: UserCenter.EntAuth:input_type -> EntAuthReq
-	3,  // 8: UserCenter.EntExamine:input_type -> ExamineReq
-	5,  // 9: UserCenter.EntList:input_type -> EntListReq
-	9,  // 10: UserCenter.ExamineList:input_type -> ExamineListReq
-	13, // 11: UserCenter.CheckEnt:input_type -> CheckEntReq
-	1,  // 12: UserCenter.EntAuth:output_type -> EntAuthResp
-	4,  // 13: UserCenter.EntExamine:output_type -> ExamineResp
-	6,  // 14: UserCenter.EntList:output_type -> EntListResp
-	10, // 15: UserCenter.ExamineList:output_type -> ExamineListResp
-	14, // 16: UserCenter.CheckEnt:output_type -> CheckEntResp
-	12, // [12:17] is the sub-list for method output_type
-	7,  // [7:12] is the sub-list for method input_type
-	7,  // [7:7] is the sub-list for extension type_name
-	7,  // [7:7] is the sub-list for extension extendee
-	0,  // [0:7] is the sub-list for field type_name
+	20, // 6: CheckEntResp.data:type_name -> CheckEntResp.checkData
+	16, // 7: EntInfoResp.data:type_name -> EntInfoData
+	0,  // 8: UserCenter.EntAuth:input_type -> EntAuthReq
+	3,  // 9: UserCenter.EntExamine:input_type -> ExamineReq
+	5,  // 10: UserCenter.EntList:input_type -> EntListReq
+	9,  // 11: UserCenter.ExamineList:input_type -> ExamineListReq
+	13, // 12: UserCenter.CheckEnt:input_type -> CheckEntReq
+	13, // 13: UserCenter.EntInfo:input_type -> CheckEntReq
+	17, // 14: UserCenter.EntUpdate:input_type -> EntUpdateReq
+	18, // 15: UserCenter.ExamineInfo:input_type -> CheckExamineReq
+	1,  // 16: UserCenter.EntAuth:output_type -> EntAuthResp
+	4,  // 17: UserCenter.EntExamine:output_type -> ExamineResp
+	6,  // 18: UserCenter.EntList:output_type -> EntListResp
+	10, // 19: UserCenter.ExamineList:output_type -> ExamineListResp
+	14, // 20: UserCenter.CheckEnt:output_type -> CheckEntResp
+	15, // 21: UserCenter.EntInfo:output_type -> EntInfoResp
+	4,  // 22: UserCenter.EntUpdate:output_type -> ExamineResp
+	15, // 23: UserCenter.ExamineInfo:output_type -> EntInfoResp
+	16, // [16:24] is the sub-list for method output_type
+	8,  // [8:16] is the sub-list for method input_type
+	8,  // [8:8] is the sub-list for extension type_name
+	8,  // [8:8] is the sub-list for extension extendee
+	0,  // [0:8] is the sub-list for field type_name
 }
 
 func init() { file_userCenter_proto_init() }
@@ -1746,7 +2206,7 @@ func file_userCenter_proto_init() {
 			}
 		}
 		file_userCenter_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*ExamineResp_ExamineData); i {
+			switch v := v.(*EntInfoResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1758,6 +2218,54 @@ func file_userCenter_proto_init() {
 			}
 		}
 		file_userCenter_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*EntInfoData); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_userCenter_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*EntUpdateReq); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_userCenter_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*CheckExamineReq); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_userCenter_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ExamineResp_ExamineData); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_userCenter_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*CheckEntRespCheckData); i {
 			case 0:
 				return &v.state
@@ -1776,7 +2284,7 @@ func file_userCenter_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_userCenter_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   17,
+			NumMessages:   21,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 114 - 0
rpc/pb/userCenter_grpc.pb.go

@@ -32,6 +32,12 @@ type UserCenterClient interface {
 	ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error)
 	//查看企业状态
 	CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error)
+	//查看企业详情
+	EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error)
+	// 冻结/解冻企业
+	EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error)
+	//查看审核详情
+	ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error)
 }
 
 type userCenterClient struct {
@@ -87,6 +93,33 @@ func (c *userCenterClient) CheckEnt(ctx context.Context, in *CheckEntReq, opts .
 	return out, nil
 }
 
+func (c *userCenterClient) EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
+	out := new(EntInfoResp)
+	err := c.cc.Invoke(ctx, "/UserCenter/EntInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *userCenterClient) EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error) {
+	out := new(ExamineResp)
+	err := c.cc.Invoke(ctx, "/UserCenter/EntUpdate", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *userCenterClient) ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
+	out := new(EntInfoResp)
+	err := c.cc.Invoke(ctx, "/UserCenter/ExamineInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserCenterServer is the server API for UserCenter service.
 // All implementations must embed UnimplementedUserCenterServer
 // for forward compatibility
@@ -101,6 +134,12 @@ type UserCenterServer interface {
 	ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error)
 	//查看企业状态
 	CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error)
+	//查看企业详情
+	EntInfo(context.Context, *CheckEntReq) (*EntInfoResp, error)
+	// 冻结/解冻企业
+	EntUpdate(context.Context, *EntUpdateReq) (*ExamineResp, error)
+	//查看审核详情
+	ExamineInfo(context.Context, *CheckExamineReq) (*EntInfoResp, error)
 	mustEmbedUnimplementedUserCenterServer()
 }
 
@@ -123,6 +162,15 @@ func (UnimplementedUserCenterServer) ExamineList(context.Context, *ExamineListRe
 func (UnimplementedUserCenterServer) CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckEnt not implemented")
 }
+func (UnimplementedUserCenterServer) EntInfo(context.Context, *CheckEntReq) (*EntInfoResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method EntInfo not implemented")
+}
+func (UnimplementedUserCenterServer) EntUpdate(context.Context, *EntUpdateReq) (*ExamineResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method EntUpdate not implemented")
+}
+func (UnimplementedUserCenterServer) ExamineInfo(context.Context, *CheckExamineReq) (*EntInfoResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method ExamineInfo not implemented")
+}
 func (UnimplementedUserCenterServer) mustEmbedUnimplementedUserCenterServer() {}
 
 // UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service.
@@ -226,6 +274,60 @@ func _UserCenter_CheckEnt_Handler(srv interface{}, ctx context.Context, dec func
 	return interceptor(ctx, in, info, handler)
 }
 
+func _UserCenter_EntInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(CheckEntReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserCenterServer).EntInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/UserCenter/EntInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserCenterServer).EntInfo(ctx, req.(*CheckEntReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _UserCenter_EntUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(EntUpdateReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserCenterServer).EntUpdate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/UserCenter/EntUpdate",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserCenterServer).EntUpdate(ctx, req.(*EntUpdateReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _UserCenter_ExamineInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(CheckExamineReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserCenterServer).ExamineInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/UserCenter/ExamineInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserCenterServer).ExamineInfo(ctx, req.(*CheckExamineReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -253,6 +355,18 @@ var UserCenter_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckEnt",
 			Handler:    _UserCenter_CheckEnt_Handler,
 		},
+		{
+			MethodName: "EntInfo",
+			Handler:    _UserCenter_EntInfo_Handler,
+		},
+		{
+			MethodName: "EntUpdate",
+			Handler:    _UserCenter_EntUpdate_Handler,
+		},
+		{
+			MethodName: "ExamineInfo",
+			Handler:    _UserCenter_ExamineInfo_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "userCenter.proto",

+ 64 - 0
rpc/test/ent_test.go

@@ -10,7 +10,11 @@ import (
 	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
 	usercenterclient "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
 
+	resourcepb "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/pb"
+	"bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/resource"
+
 	"github.com/zeromicro/go-zero/core/conf"
+	"github.com/zeromicro/go-zero/core/discov"
 	"github.com/zeromicro/go-zero/zrpc"
 )
 
@@ -27,6 +31,66 @@ func init() {
 	conf.MustLoad("usercenter.yaml", &c)
 }
 
+// go test -v -run Test_ExamineInfo
+func Test_ExamineInfo(t *testing.T) {
+	ctx, _ := context.WithTimeout(context.Background(), 2*time.Second)
+	FileSystem := usercenterclient.NewUserCenter(zrpc.MustNewClient(c.FileSystemConf))
+	req := &pb.CheckExamineReq{
+		ExamineId: 18,
+	}
+	res, err := FileSystem.ExamineInfo(ctx, req)
+	log.Println("err ", err)
+	log.Println("res:", res)
+}
+
+// go test -v -run Test_UpdateEnt
+func Test_UpdateEnt(t *testing.T) {
+	ctx, _ := context.WithTimeout(context.Background(), 2*time.Second)
+	FileSystem := usercenterclient.NewUserCenter(zrpc.MustNewClient(c.FileSystemConf))
+	req := &pb.EntUpdateReq{
+		EntId:      14823,
+		UpdateType: 2,
+	}
+	res, err := FileSystem.EntUpdate(ctx, req)
+	log.Println("err ", err)
+	log.Println("res:", res)
+}
+
+// go test -v -run Test_EntInfo
+func Test_EntInfo(t *testing.T) {
+	ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
+	FileSystem := usercenterclient.NewUserCenter(zrpc.MustNewClient(c.FileSystemConf))
+	req := &pb.CheckEntReq{
+		EntId: 14823,
+	}
+	res, err := FileSystem.EntInfo(ctx, req)
+	log.Println("err ", err)
+	log.Println("res:", res)
+}
+
+// go test -v -run Test_Resource
+func Test_Resource(t *testing.T) {
+	ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
+	client := zrpc.MustNewClient(zrpc.RpcClientConf{
+		Etcd: discov.EtcdConf{
+			Hosts: []string{"192.168.3.240:2379"},
+			Key:   "resource.rpc",
+		},
+	})
+	fileSystem := resource.NewResource(client)
+	req := &resourcepb.PowerReq{
+		Appid:     "10000",
+		GoodsCode: "xxfb_gyxx",
+		EntId:     1,
+		StartTime: time.Now().Format("2006-01-02 15:04:05"),
+		EndTime:   time.Now().AddDate(1, 0, 0).Format("2006-01-02 15:04:05"),
+		Type:      1,
+	}
+	resp, err := fileSystem.PowerHandle(ctx, req)
+	log.Println("err:", err)
+	log.Println("resp:", resp)
+}
+
 // go test -v -run Test_CheckEnt
 func Test_CheckEnt(t *testing.T) {
 	ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)

+ 8 - 1
rpc/userCenter.proto

@@ -176,6 +176,11 @@ message EntUpdateReq{
 	int64 updateType =2; //1-冻结  2-解冻
 }
 
+//审核详情入参
+message CheckExamineReq{
+	int64 examineId =1;  //审核id
+}
+
 service UserCenter {
 	//企业认证
 	rpc EntAuth (EntAuthReq) returns (EntAuthResp);
@@ -189,6 +194,8 @@ service UserCenter {
 	rpc CheckEnt (CheckEntReq) returns(CheckEntResp);
 	//查看企业详情
 	rpc EntInfo (CheckEntReq)returns (EntInfoResp);
-	//修改企业状态
+	// 冻结/解冻企业
 	rpc EntUpdate (EntUpdateReq) returns(ExamineResp);
+	//查看审核详情
+	rpc ExamineInfo(CheckExamineReq) returns (EntInfoResp);
 }

+ 28 - 0
rpc/usercenter/usercenter.go

@@ -16,13 +16,17 @@ type (
 	CheckEntReq             = pb.CheckEntReq
 	CheckEntResp            = pb.CheckEntResp
 	CheckEntRespCheckData   = pb.CheckEntRespCheckData
+	CheckExamineReq         = pb.CheckExamineReq
 	EntAuthData             = pb.EntAuthData
 	EntAuthReq              = pb.EntAuthReq
 	EntAuthResp             = pb.EntAuthResp
 	EntData                 = pb.EntData
+	EntInfoData             = pb.EntInfoData
+	EntInfoResp             = pb.EntInfoResp
 	EntList                 = pb.EntList
 	EntListReq              = pb.EntListReq
 	EntListResp             = pb.EntListResp
+	EntUpdateReq            = pb.EntUpdateReq
 	ExamineList             = pb.ExamineList
 	ExamineListData         = pb.ExamineListData
 	ExamineListReq          = pb.ExamineListReq
@@ -42,6 +46,12 @@ type (
 		ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error)
 		// 查看企业状态
 		CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error)
+		// 查看企业详情
+		EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error)
+		//  冻结/解冻企业
+		EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error)
+		// 查看审核详情
+		ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error)
 	}
 
 	defaultUserCenter struct {
@@ -84,3 +94,21 @@ func (m *defaultUserCenter) CheckEnt(ctx context.Context, in *CheckEntReq, opts
 	client := pb.NewUserCenterClient(m.cli.Conn())
 	return client.CheckEnt(ctx, in, opts...)
 }
+
+// 查看企业详情
+func (m *defaultUserCenter) EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
+	client := pb.NewUserCenterClient(m.cli.Conn())
+	return client.EntInfo(ctx, in, opts...)
+}
+
+//  冻结/解冻企业
+func (m *defaultUserCenter) EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error) {
+	client := pb.NewUserCenterClient(m.cli.Conn())
+	return client.EntUpdate(ctx, in, opts...)
+}
+
+// 查看审核详情
+func (m *defaultUserCenter) ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
+	client := pb.NewUserCenterClient(m.cli.Conn())
+	return client.ExamineInfo(ctx, in, opts...)
+}

+ 60 - 0
service/entService.go

@@ -226,3 +226,63 @@ func (this *EntService) CheckEnt(data *userCenter.CheckEntReq) (int64, int64, st
 	authStatus, frozenStatus, msg := info.Check()
 	return authStatus, frozenStatus, msg
 }
+
+//企业信息
+func (this *EntService) Info(data *userCenter.CheckEntReq) (int64, string, *userCenter.EntInfoData) {
+	info := &entity.CheckEnt{
+		EntId: data.EntId,
+		Mysql: entity.Mysql,
+	}
+	rdata := info.Info()
+	entInfoData := &userCenter.EntInfoData{
+		Name:             rdata.Name,
+		OrganizationType: rdata.OrganizationType,
+		CreditCode:       rdata.CreditCode,
+		CompanyType:      rdata.CompanyType,
+		AreaNumber:       rdata.AreaNumber,
+		Business:         rdata.Business,
+		OfficialLetter:   rdata.OfficialLetter,
+		AuthStartTime:    rdata.AuthStartTime,
+		AuthEndTime:      rdata.AuthEndTime,
+		ForzenStatus:     rdata.ForzenStatus,
+		AuthState:        rdata.AuthState,
+		ContactPerson:    rdata.ContactPerson,
+		ContactPhone:     rdata.ContactPhone,
+	}
+	return entity.SuccessCode, "", entInfoData
+}
+
+func (this *EntService) UpdateEnt(data *userCenter.EntUpdateReq) (int64, string, int64) {
+	info := &entity.UpdateEnt{
+		EntId:      data.EntId,
+		UpdateType: data.UpdateType,
+		Mysql:      entity.Mysql,
+	}
+	status, msg := info.UpdateEnt()
+	return entity.SuccessCode, msg, status
+}
+
+func (this *EntService) ExamineInfo(data *userCenter.CheckExamineReq) (int64, string, *userCenter.EntInfoData) {
+	info := &entity.ExamineInfo{
+		ExamineId: data.ExamineId,
+		Mysql:     entity.Mysql,
+	}
+	rdata := info.Info()
+	entInfoData := &userCenter.EntInfoData{
+		Name:             rdata.Name,
+		OrganizationType: rdata.OrganizationType,
+		CreditCode:       rdata.CreditCode,
+		CompanyType:      rdata.CompanyType,
+		AreaNumber:       rdata.AreaNumber,
+		Business:         rdata.Business,
+		OfficialLetter:   rdata.OfficialLetter,
+		AuthState:        rdata.AuthState,
+		ContactPerson:    rdata.ContactPerson,
+		ContactPhone:     rdata.ContactPhone,
+		RegPhone:         rdata.RegPhone,
+		AuthTime:         rdata.AuthTime,
+		AuthReason:       rdata.AuthReason,
+		AuditUser:        rdata.AuditUser,
+	}
+	return entity.SuccessCode, "", entInfoData
+}