models

package
v0.0.0-...-412db8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CBSData

type CBSData struct {
	Number       int    `json:"RNUM"`
	ModifiedDate string `json:"LAST_MODF_DT"`
	RegisterDate string `json:"FRST_REGIST_DT"`
	SJ           string `json:"SJ"`
	IndexNumber  int    `json:"IDX_NO"`
	Content      string `json:"CONT"`
	NM           string `json:"USR_NM"`
	ExpsrAt      string `json:"USR_EXPSR_AT"`
}

CBSData is structure for CBS Raw Data

type CeasyData

type CeasyData struct {
	ID         int    `gorm:"primary_key;unique_index"`
	Area       string `json:"area" gorm:""`
	AreaDetail string `json:"area_detail" gorm:""`
	Content    string `json:"content"`
	Date       *time.Time
}

CeasyData returns actual data

type CeasyDataForParse

type CeasyDataForParse struct {
	ID      string `json:"bbs_ordr"`
	Content string `json:"cn"`
	Date    string `json:"frst_regist_dt"`
}

CeasyDataForParse returns date data

type Config

type Config struct {
	Port         string `json:"PORT"`
	Debug        bool   `json:"DEBUG"`
	DefaultLimit int    `json:"DefaultLimit"`
	MaxLimit     int    `json:"MaxLimit"`
	DBHost       string `json:"DBHost"`
	DBPort       string `json:"DBPort"`
	DBUser       string `json:"DBUser"`
	DBPass       string `json:"DBPass"`
	DBDatabase   string `json:"DBDatabase"`
}

Config exports config

type RtnResult

type RtnResult struct {
	Code string `json:"resultCode"`
	Msg  string `json:"resultMsg"`
}

RtnResult returns return Result

type SelectBbsList

type SelectBbsList struct {
	Result RtnResult `json:"rtnResult"`
	Data   []struct {
		ID       int    `json:"BBS_ORDR"`
		CreateAt string `json:"FRST_REGIST_DT"`
		Title    string `json:"SJ"`
	} `json:"bbsList"`
}

SelectBbsList returns bbs selection

type SelectBbsView

type SelectBbsView struct {
	Result RtnResult         `json:"rtnResult"`
	Data   CeasyDataForParse `json:"bbsMap"`
}

SelectBbsView returns organized data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL