From 3de6c33310c4787486d719b964d01be19d2f0016 Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 23 May 2017 19:12:57 +0900 Subject: [PATCH] shared project --- .gitignore | 61 +++++++++++++++++++++++++++++++++++++++++ proxy/member_service.go | 34 +++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 .gitignore create mode 100644 proxy/member_service.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e2ebe9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,61 @@ +# Created by .ignore support plugin (hsz.mobi) +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +# Gradle: +.idea/**/gradle.xml +.idea/**/libraries + +# Mongo Explorer plugin: +.idea/**/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +### Go template +# Binaries for programs and plugins +*.exe +*.dll +*.so +*.dylib + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 +.glide/ + diff --git a/proxy/member_service.go b/proxy/member_service.go new file mode 100644 index 0000000..3c13422 --- /dev/null +++ b/proxy/member_service.go @@ -0,0 +1,34 @@ +package proxy + +import "log" + +type MemberService struct { + Email string `json:"email"` + Pw string `json:"pw"` +} + +func NewMember() *MemberService { + m := MemberService{} + return &m +} + +func (m *MemberService) Regist(member *MemberService) { + log.Println("Call Regist") + // Todo Call DB Gateway + +} + +func (m *MemberService) Read(email string) MemberService { + log.Println("Call Read") + // Todo Call DB Gateway +} + +func (m *MemberService) Modify(member MemberService) { + log.Println("Call Modify") + // Todo Call DB Gateway +} + +func (m *MemberService) Remove(email string) { + log.Println("Call Remove") + // Todo Call DB Gateway +}