1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: common.proto
- package server
- import (
- "context"
- "app.yhyue.com/moapp/jyInfo/rpc/common/internal/logic"
- "app.yhyue.com/moapp/jyInfo/rpc/common/internal/svc"
- "app.yhyue.com/moapp/jyInfo/rpc/common/type/common"
- )
- type CommonServer struct {
- svcCtx *svc.ServiceContext
- common.UnimplementedCommonServer
- }
- func NewCommonServer(svcCtx *svc.ServiceContext) *CommonServer {
- return &CommonServer{
- svcCtx: svcCtx,
- }
- }
- // 获取省份信息(暂不用)
- func (s *CommonServer) AreaInfo(ctx context.Context, in *common.ProjectReq) (*common.AreaResp, error) {
- l := logic.NewAreaInfoLogic(ctx, s.svcCtx)
- return l.AreaInfo(in)
- }
- // 获取行业信息(暂不用)
- func (s *CommonServer) IndustryInfo(ctx context.Context, in *common.ProjectReq) (*common.IndustryResp, error) {
- l := logic.NewIndustryInfoLogic(ctx, s.svcCtx)
- return l.IndustryInfo(in)
- }
- // 修改信息发布状态
- func (s *CommonServer) StateMethod(ctx context.Context, in *common.StateRequest) (*common.StateResponse, error) {
- l := logic.NewStateMethodLogic(ctx, s.svcCtx)
- return l.StateMethod(in)
- }
- //
- func (s *CommonServer) SensitiveMethod(ctx context.Context, in *common.SensitiveRequest) (*common.SensitiveResponse, error) {
- l := logic.NewSensitiveMethodLogic(ctx, s.svcCtx)
- return l.SensitiveMethod(in)
- }
|