{
"error": false,
"code": 200,
"message": "OK",
{ | |
"error": false, | |
"code": 200, | |
"message": "OK", | |
"data": { | |
"id": "6c0d43cc-c30c-41d1-9f10-980c4c2964b7", | |
"name": "Urban Farming Business Development and Management - Level 1", | |
"proficiency": 1, | |
"learning_outcomes_exist_version": "Lorem ipsum is not a quotes", | |
"learning_outcomes_new_version": "Lorem ipsum is not a quotes", |
import { | |
AlertDialog, AlertDialogAction, | |
AlertDialogContent, | |
AlertDialogDescription, AlertDialogFooter, | |
AlertDialogHeader, | |
AlertDialogTitle | |
} from './ui/alert-dialog'; | |
import {Label} from './ui/label'; | |
import {Input} from './ui/input'; | |
import * as React from 'react'; |
import {Injectable} from '@angular/core'; | |
import {CONFIGS} from '../config'; | |
import {RestService} from './rest.service'; | |
@Injectable({providedIn: "root"}) | |
export class AuthRestService { | |
private pathResourceURL = CONFIGS.api.rest.path; | |
constructor(private restService: RestService) {} |
CQRS (Command Query Responsibility Segregation (but with our current design/arch maybe this will be called Command–query separation 😀)) is a software design pattern that emphasizes the separation of a system's read and writes operations. Instead of using a single model to handle both queries and commands, CQRS advocates for the use of distinct models, each optimized for its specific task (Greg Young).
The main benefit of using CQRS is improved scalability and performance. Another important benefit of CQRS is improved maintainability and extensibility of the system. By separating the read and write concerns, CQRS promotes a more modular and decoupled architecture, making it easier to change or add new features without disrupting existing functionality.
type GeographyDetailForm struct { | |
TenantID string `json:"-" form:"-"` | |
Name string `form:"name" json:"name"` | |
Type string `form:"type" json:"type" default:"region"` | |
Countries []struct { | |
ID string `form:"id" json:"id"` | |
Code string `form:"code" json:"code"` | |
Name string `form:"name" json:"name"` | |
Type string `form:"type" json:"type" default:"country"` | |
Currency struct { |
[ | |
{ | |
"id": "82bf26a6-9dd7-461b-a0c2-8d3e1a5e9b15", | |
"code": "AF", | |
"name": "Afghanistan", | |
"continent": "Asia", | |
"calling_code": "+93", | |
"currency": { | |
"code": "AFN", | |
"name": "Afghan afghani" |
package main | |
import "fmt" | |
func main() { | |
dummy := NewDummy() | |
fmt.Println(dummy.Lorem) | |
fmt.Println(dummy.Ipsum) | |
dummy.Lorem = "test" |