10 Commits

16 changed files with 348 additions and 60 deletions

2
.gitignore vendored
View File

@@ -405,3 +405,5 @@ FodyWeavers.xsd
# Secrets
JOBot.TClient/appsettings.json
/.idea/.idea.JOBot/Docker/compose.generated.override.yml
/.idea/.idea.JOBot/Docker/compose.dev.generated.override.yml

View File

@@ -1,19 +1,17 @@
namespace JOBot.Backend.DAL.Context;
using JOBot.Backend.DAL.Models;
using Models;
using Microsoft.EntityFrameworkCore;
public class AppDbContext : DbContext
public class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
{
public DbSet<User> Users { get; set; }
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<User>()
.HasAlternateKey(b => b.TelegramId);
.HasAlternateKey(b => b.UserId);
}
}

View File

@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using JOBot.Proto;
using Microsoft.EntityFrameworkCore;
namespace JOBot.Backend.DAL.Models;
@@ -9,10 +10,30 @@ public class User
public Guid Id { get; set; }
[Key]
public required long TelegramId { get; set; }
[MaxLength(50)]
public required long UserId { get; set; }
[MaxLength(255)]
public string? Username { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public string? HeadHunterResumeUrl { get; set; }
[MaxLength(255)] public string? AccessToken { get; set; } = null;
[MaxLength(255)] public string? RefreshToken { get; set; } = null;
public bool Eula { get; set; } = false;
[MaxLength(255)] public string? CvUrl { get; set; } = null;
}
//TODO: Негоже это маппинги в DAL ложить
public static class UserMap
{
public static GetUserResponse MapToResponse(this User user)
{
return new GetUserResponse
{
UserId = user.UserId,
Username = user.Username,
Eula = user.Eula,
IsLogged = user.RefreshToken != null,
CVUrl = user.CvUrl
};
}
}

View File

@@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace JOBot.Backend.Data.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20250710125338_Initial")]
[Migration("20250710203327_Initial")]
partial class Initial
{
/// <inheritdoc />
@@ -31,22 +31,34 @@ namespace JOBot.Backend.Data.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("AccessToken")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property<string>("HeadHunterResumeUrl")
.HasColumnType("text");
b.Property<string>("CvUrl")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<long>("TelegramId")
b.Property<bool>("Eula")
.HasColumnType("boolean");
b.Property<string>("RefreshToken")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.Property<string>("Username")
.HasMaxLength(50)
.HasColumnType("character varying(50)");
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.HasKey("Id");
b.HasAlternateKey("TelegramId");
b.HasAlternateKey("UserId");
b.ToTable("Users");
});

View File

@@ -16,15 +16,18 @@ namespace JOBot.Backend.Data.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
TelegramId = table.Column<long>(type: "bigint", nullable: false),
Username = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true),
UserId = table.Column<long>(type: "bigint", nullable: false),
Username = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: true),
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
HeadHunterResumeUrl = table.Column<string>(type: "text", nullable: true)
AccessToken = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: true),
RefreshToken = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: true),
Eula = table.Column<bool>(type: "boolean", nullable: false),
CvUrl = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Users", x => x.Id);
table.UniqueConstraint("AK_Users_TelegramId", x => x.TelegramId);
table.UniqueConstraint("AK_Users_UserId", x => x.UserId);
});
}

View File

@@ -28,22 +28,34 @@ namespace JOBot.Backend.Data.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("AccessToken")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property<string>("HeadHunterResumeUrl")
.HasColumnType("text");
b.Property<string>("CvUrl")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<long>("TelegramId")
b.Property<bool>("Eula")
.HasColumnType("boolean");
b.Property<string>("RefreshToken")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.Property<string>("Username")
.HasMaxLength(50)
.HasColumnType("character varying(50)");
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.HasKey("Id");
b.HasAlternateKey("TelegramId");
b.HasAlternateKey("UserId");
b.ToTable("Users");
});

View File

@@ -10,4 +10,5 @@ WORKDIR /app
COPY --from=build /app .
EXPOSE 5001
EXPOSE 5000
ENV ASPNETCORE_ENVIRONMENT Staging
ENTRYPOINT ["dotnet", "JOBot.Backend.dll"]

View File

@@ -9,6 +9,7 @@
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.30.2" />
<PackageReference Include="Grpc.AspNetCore" Version="2.71.0" />
<PackageReference Include="Grpc.AspNetCore.Server.Reflection" Version="2.71.0" />
<PackageReference Include="Grpc.Tools" Version="2.71.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
@@ -24,4 +25,8 @@
<Protobuf Include="..\Proto\*" GrpcServices="Server"></Protobuf>
</ItemGroup>
<ItemGroup>
<Folder Include="Data\Migrations\" />
</ItemGroup>
</Project>

View File

@@ -1,43 +1,75 @@
using Grpc.Core;
using JOBot.Proto;
using JOBot.Backend.DAL.Context;
using Models = JOBot.Backend.DAL.Models;
using JOBot.Backend.DAL.Models;
using JOBot.Proto;
using Microsoft.EntityFrameworkCore;
using User = JOBot.Backend.DAL.Models.User;
namespace JOBot.Backend.Services.gRPC;
public class UserService(AppDbContext dbContext) : User.UserBase
{
public override Task<RegisterResponse> Register(
RegisterRequest request,
ServerCallContext context)
public class UserService(AppDbContext dbContext) : Proto.User.UserBase
{
/// <summary>
/// Create user
/// </summary>
/// <param name="request"></param>
/// <param name="_"></param>
/// <returns>Status of operation (fail if user exists)</returns>
public override async Task<RegisterResponse> Register(RegisterRequest request, ServerCallContext _)
{
if(!dbContext.Users
.Any(x => x.TelegramId == request.UserId))
if (await dbContext.Users.AnyAsync(x => x.UserId == request.UserId))
return new RegisterResponse { Success = false };
dbContext.Users.Add(new User
{
dbContext.Users.Add(new Models.User
{
TelegramId = request.UserId,
UserId = request.UserId,
Username = !string.IsNullOrEmpty(request.Username) ? request.Username : null
});
await dbContext.SaveChangesAsync();
dbContext.SaveChanges();
return Task.FromResult(new RegisterResponse
{
Success = true
});
return new RegisterResponse { Success = true };
}
return Task.FromResult(new RegisterResponse
/// <summary>
/// Get user for client
/// </summary>
/// <param name="request"></param>
/// <param name="_"></param>
/// <returns>User, or throws RPC exception if not found</returns>
public override async Task<GetUserResponse> GetUser(GetUserRequest request, ServerCallContext _)
{
Success = false
});
var user = await dbContext.Users.FirstOrDefaultAsync(x => x.UserId == request.UserId);
ThrowIfUserNotFound(user);
return user!.MapToResponse();
}
public override Task<GetUserResponse> GetUser(
GetUserRequest request,
ServerCallContext context)
/// <summary>
/// Accept EULA for user
/// </summary>
/// <param name="request"></param>
/// <param name="_"></param>
/// <returns>Status of operation</returns>
public override async Task<AcceptEulaResponse> AcceptEula(AcceptEulaRequest request, ServerCallContext _)
{
return null;
var user = await dbContext.Users.FirstOrDefaultAsync(x => x.UserId == request.UserId);
if (user == null)
return new AcceptEulaResponse { Success = false };
user.Eula = request.EulaAccepted;
await dbContext.SaveChangesAsync();
return new AcceptEulaResponse { Success = true };
}
/// <summary>
/// Throw RPCException if user not found
/// </summary>
/// <param name="user"></param>
/// <exception cref="RpcException"></exception>
private static void ThrowIfUserNotFound(User? user)
{
if (user == null)
throw new RpcException(new Status(StatusCode.NotFound, "User not found"));
}
}

View File

@@ -16,12 +16,15 @@ public class Startup
public void ConfigureServices(IServiceCollection services)
{
services.AddGrpc();
services.AddGrpcReflection();
services.AddDbContext<AppDbContext>(options =>
options.UseNpgsql(Configuration.GetConnectionString("PostgreSQL")));
}
public void Configure(WebApplication app, IWebHostEnvironment env)
{
app.MapGrpcReflectionService().AllowAnonymous();
app.MapGrpcService<UserService>();
}
}

View File

@@ -4,5 +4,8 @@
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"PostgreSQL": "Host=localhost;Port=5432;Database=jobot;Username=postgres;Password=LocalDbPass"
}
}

View File

@@ -7,6 +7,6 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"PostgreSQL": "Host=localhost;Port=5432;Database=jobot_test;Username=postgres;Password=LocalDbPass"
"PostgreSQL": "Host=postgres;Port=5432;Database=jobot_test;Username=postgres;Password=LocalDbPass"
}
}

View File

@@ -4,6 +4,7 @@ option csharp_namespace = "JOBot.Proto";
service User {
rpc Register (RegisterRequest) returns (RegisterResponse);
rpc GetUser (GetUserRequest) returns (GetUserResponse);
rpc AcceptEula (AcceptEulaRequest) returns (AcceptEulaResponse);
}
import "google/protobuf/wrappers.proto";
@@ -22,5 +23,18 @@ message GetUserRequest {
}
message GetUserResponse {
bool logged_to_hh = 1;
int64 user_id = 1;
google.protobuf.StringValue username = 2;
bool eula = 3;
bool is_logged = 4;
google.protobuf.StringValue CVUrl = 5;
}
message AcceptEulaRequest {
int64 user_id = 1;
bool eula_accepted = 2;
}
message AcceptEulaResponse{
bool success = 1;
}

37
compose.dev.yml Normal file
View File

@@ -0,0 +1,37 @@
version: '3.8'
services:
postgres:
image: postgres:15
environment:
POSTGRES_PASSWORD: LocalDbPass
POSTGRES_DB: jobot
ports:
- "5432:5432"
volumes:
- ./.docker/postgres_data:/var/lib/postgresql/data
networks:
- jobot
backend:
build:
context: .
dockerfile: JOBot.Backend/Dockerfile
depends_on:
- postgres
ports:
- "5001:5001"
networks:
- jobot
bot:
build:
context: .
dockerfile: JOBot.TClient/Dockerfile
depends_on:
- backend
networks:
- jobot
networks:
jobot:

View File

@@ -6,8 +6,6 @@ services:
environment:
POSTGRES_PASSWORD: LocalDbPass
POSTGRES_DB: jobot
ports:
- "5432:5432"
volumes:
- ./.docker/postgres_data:/var/lib/postgresql/data
networks:

View File

@@ -0,0 +1,147 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/27.0.9 Chrome/134.0.6998.205 Electron/35.4.0 Safari/537.36" version="27.0.9">
<diagram name="/start" id="RBNtdg3dX3ngeTm1AG6C">
<mxGraphModel dx="1248" dy="862" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="RWtiJw2BV4MPElkXuSfI-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-3" target="RWtiJw2BV4MPElkXuSfI-14">
<mxGeometry relative="1" as="geometry">
<mxPoint x="390" y="260" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-3" value="/start" style="ellipse;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="330" y="140" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-13" value="PrepareUserValidator" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=default;fillColor=none;dashed=1;dashPattern=8 8;labelPosition=left;verticalLabelPosition=top;align=right;verticalAlign=bottom;" vertex="1" parent="1">
<mxGeometry x="120" y="250" width="640" height="1400" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-14" target="RWtiJw2BV4MPElkXuSfI-15">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-14" value="User = gRPC UserService -&amp;gt; GetUser" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="330" y="280" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-15" target="RWtiJw2BV4MPElkXuSfI-17">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-15" target="RWtiJw2BV4MPElkXuSfI-21">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="300" y="400" />
<mxPoint x="300" y="530" />
<mxPoint x="390" y="530" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-15" value="User.Exists?" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="335" y="360" width="110" height="80" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-17" target="RWtiJw2BV4MPElkXuSfI-21">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="474" y="530" />
<mxPoint x="390" y="530" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-17" value="gRPC UserService -&amp;gt;&lt;div&gt;Register&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="414" y="440" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-21" target="RWtiJw2BV4MPElkXuSfI-28">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-21" value="User.EULA?" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="331.25" y="550" width="117.5" height="80" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-25" value="True" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="290" y="370" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-27" value="False" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="430" y="370" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-33" value="&amp;lt;&amp;lt;inline button Accept&amp;gt;&amp;gt;" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;dashed=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-28" target="RWtiJw2BV4MPElkXuSfI-31">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-28" value="SendEULA()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="330" y="650" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-35" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-31" target="RWtiJw2BV4MPElkXuSfI-34">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-31" value="&lt;div&gt;&amp;lt;&amp;lt;signal&amp;gt;&amp;gt;&lt;/div&gt;&lt;div&gt;gRPC UserService -&amp;gt; AcceptEULA&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="330.25" y="760" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-47" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-34" target="RWtiJw2BV4MPElkXuSfI-37">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-55" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-34" target="RWtiJw2BV4MPElkXuSfI-46">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="263" y="920" />
<mxPoint x="263" y="1160" />
<mxPoint x="389" y="1160" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-34" value="User.Logged()?" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="282.75" y="880" width="215" height="80" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-44" value="&amp;lt;&amp;lt;HH.ru hook&amp;gt;&amp;gt;" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;dashed=1;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-37" target="RWtiJw2BV4MPElkXuSfI-41">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-37" value="SendAskForAuth()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="465" y="1000" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-53" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-41" target="RWtiJw2BV4MPElkXuSfI-46">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-41" value="&amp;lt;&amp;lt;signal&amp;gt;&amp;gt;&lt;div&gt;SendNotifyAuthSuccess()&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="445" y="1080" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-46" target="RWtiJw2BV4MPElkXuSfI-54">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-67" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-46" target="RWtiJw2BV4MPElkXuSfI-66">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="262" y="1220" />
<mxPoint x="262" y="1550" />
<mxPoint x="526" y="1550" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-46" value="User.ResumeUrl.NullOrEmpty()?" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="281.75" y="1180" width="215" height="80" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-58" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-54" target="RWtiJw2BV4MPElkXuSfI-57">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-54" value="gRPC UserService -&amp;gt; GetCVList" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="465" y="1290" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-61" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;dashed=1;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-57" target="RWtiJw2BV4MPElkXuSfI-60">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-62" value="&amp;lt;&amp;lt;inline button of CV pressed&amp;gt;&amp;gt;" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelPosition=right;verticalLabelPosition=middle;" vertex="1" connectable="0" parent="RWtiJw2BV4MPElkXuSfI-61">
<mxGeometry x="0.2305" y="2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-57" value="SendAskForCVSelection()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="448.75" y="1380" width="155" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-65" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="RWtiJw2BV4MPElkXuSfI-60">
<mxGeometry relative="1" as="geometry">
<mxPoint x="526.25" y="1560" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-60" value="&lt;div&gt;&amp;lt;&amp;lt;signal&amp;gt;&amp;gt;&lt;/div&gt;ResumeSelected()" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="466.25" y="1480" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="RWtiJw2BV4MPElkXuSfI-66" value="/menu" style="ellipse;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="466.25" y="1560" width="120" height="80" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>